N
N
Nikolay Razumovsky2019-08-15 11:46:25
Number systems
Nikolay Razumovsky, 2019-08-15 11:46:25

How to convert a non-integer number from decimal to hexadecimal?

The number given is 1876.54625 . The answer should be 754.8BD7 .
I understand how the numbers were translated before the decimal point, but how were the numbers after the decimal point translated? Prompt, please, algorithm. Thank you for your attention!
PS. in the text of the task it says "Answer give an accuracy of 4 decimal places", so there are only 4 decimal places.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
hint000, 2019-08-15
@frenneruruu

0.54625 multiply by 16^ 4 , convert from decimal to hexadecimal and shift the decimal point by 4 places . Those. by how much they multiplied, by the same amount they divided by a comma shift.

V
Vladislav Lyskov, 2019-08-15
@Vlatqa

1876 ​​= 754
0.54625 = 0.8BD7

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question