float stored in memory

IEEE754 storage, C 4 bytes accounted

Decimal notation index

‭0         01111111    00000000000000000000000‬

 

Represents a left index (> 127) or right (<127) how many mobile

The binary representation using 4.5

100.1

Move the decimal point to the left then the index position 1.001 129

The float is binary

0  ‭10000001‬ 00100000000000000000000

Hexadecimal 40.9 million

 

Guess you like

Origin www.cnblogs.com/travelzero/p/11229219.html