Convert 6183300 to hexadecimal base 16 Carry out your answer

Convert (6183.300) to hexadecimal (base 16). Carry out your answers to 3 places past the \"point\".

Solution

Algorithm

For decimal number x:

Get the highest power of 16 that is less than the decimal number x:

16n < x, (n=1,2,3,...)

The high hex digit is equal to the integer if the decimal number x divided by the highest power of 16 that is smaller than x:

dn = int(x / 16n)

Calculate the difference of the number x and the hex digit dn times the power of 16, 16n:

= x - dn × 16n

Repeat step #1 with the difference result until the result is 0.

Example

Convert x=6183.300 to hexadecimal:

n=3, 163=4096 < 6183.300

n=4, 164=65536 > 6183.300

So

n = 3

d3 = int(6183.300 / 163) = 1

= 6183.300 - 1×163 = 2087.3

n = 2, x = = 2087.3

d2 = int(2087.3 / 162) = 8

= 2087.3 - 8×162 = 39.3

n = 1, x = = 39.3

d1 = int(39.3 / 161) = 2

= 39.3 - 2×161 = 7.3

n = 0, x = = 7.3

d0 = int(7.3 / 160) = 7

= 7.3 – 7.3×160 = 0

(d3d2d1d0) = 1827

Convert (6183.300) to hexadecimal (base 16). Carry out your answers to 3 places past the \

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site