How 0x3333 0x41DF could be 27.9 value?
I use hexadecimal to decimal value but it was 1B.E6666666666666666666.
How 0x3333 0x41DF could be 27.9 value?
I use hexadecimal to decimal value but it was 1B.E6666666666666666666.
Copyright © 2021 Jogjafile Inc.

0x3333 0x41DF combined = 0x41DF3333. As a 32 bit IEEE float, this is evaluated as follows:
Convert to binary:
Evaluate as a 32 bit IEEE float:
The last calculation used a calculator. Noting that tha last non-zero digit after the decimal point, 3, is not 5, we know this is not the exact value. The following code gets the exact float value: