1. Convert 1234d to binary and hexadecimal numeral systems.
2. Convert 1100101b to decimal and hexadecimal numeral systems.
3. Convert ABChex to decimal and binary numeral systems.
retagged

+1 vote

The fastest way to do it is to use your Window's (for PC users) calculator - the programmers option (in the "View" tab);

But since there are more interesting ways to convert numbers and symbols you can play around; Here are my answers:

1. Convert 1234d to binary and hexadecimal numerical systems:

1234/2 = 617 (0)

617/2 = 308 (1)

308/2 = 154 (0)

154/2 = 77 (0)

77/2 = 38 (1)

38/2 = 19 (0)

19/2 = 9 (1)

9/2 = 4 (1)

4/2 = 2 (0)

2/2 = 1 (0)

1/2 = 0 (1)

Thus, the number 1234d in the binary numerical system will look like: 10011010010

The number 1234d in the hexadecimal numerical system will look like: 4D2

2. Convert 1100101b to decimal and hexadecimal numerical systems:

1100101b=1+4+32+64=101

Thus, the number 1100101 b in the decimal numerical system will look like: 101

The number 1100101 b in the hexadecimal numerical system will look like: 65

3. Convert ABChex to decimal and binary numeral systems:

ABChex in the decimal numerical system will look like: 2748

ABChex in the binary numerical system will look like: 101010111100

edited by user golearnweb
+1 vote

You can also use some easy to use online converters:

# 4. Hexadecimal to Decimal Converter: https://www.binaryhexconverter.com/hex-to-decimal-converter

edited by user golearnweb
+1 vote

I use tables on my desktop, hope they will help you in the future:  edited by user golearnweb
+1 vote

You can use while loop to convert int to binary:

```using System;

class ConvertInt
{
static void Main()
{
int x = 1234;

while (x > 0)
{
Console.WriteLine(x % 2);
x = x / 2;
}
}
}```
edited by user golearnweb
+1 vote

You can use Convert.ToString for the number 1234:

```using System;

class ConvertEasyWayMethod
{
static void Main()
{
Console.WriteLine("Number 1234 in binary is: " + Convert.ToString(1234, 2));
Console.WriteLine("Number 1234 in hexadecimal is: " + Convert.ToString(1234, 16));
}
}```
edited by user golearnweb

Unfortunately there is NO formatting string for binary...

```using System;
using System.Linq;

class Formatting
{
static void Main()
{
int number = 1234;
Console.WriteLine("The number 1234 in HEX is: {0:X}", number);
}
}```

For converting to binary you can use:

```using System;

class Convert
{
static void Main()
{
Console.WriteLine("Number 1234 in binary is: " + Convert.ToString(1234, 2));
}
}```
edited by user golearnweb
+1 vote

You can use Convert.ToString :-) Here's how:

```using System;