You are talking about floating point.
Dependent upon the data format typically IEEE
32-bit SPFP Single-Precision Floating-Point
64-bit DPFP Double-Precision Floating-Point
80-bit Double-Extended Precision Floating-Point
there are three components.
A sign bit, typically the MSB.
The Exponent
and
the Mantissa.
So 1.0 in 32-bit using IEEE would be
0x3f800000
-1.0
0xbf800000
32-bit SPFP
Sign:{31} Exponent:{30...23} mantissa:{22...0}
64-bit DPFP
63 62...52 51....0
80-bit
79 78...64 62....0
There's an implied (1) bit at bit 63.
Reputation Points: 546
Solved Threads: 99
Practically a Posting Shark
Offline 891 posts
since Jun 2009