Floating point decimal

If I wanted to convert the number to Ex. 32.24x10 ^ 5 to IEEE standard 754 BY HAND, how would I do it?

+3
source share
2 answers

Read and read the format information first . Then convert the integer to binary. Then determine the indicator (the degree, of course, of two) to normalize the mantissa. Then encode the mantissa in the corresponding bits and the exponent in the corresponding bits.

32.24E5 = 3224000
= 1100010011000111000000b
= 1.100010011000111000000b E 21 (that 2^21)
= 1.100010011000111000000b E 10101b

, ( , , ( , , )).

+5

Source: https://habr.com/ru/post/1767308/


All Articles