Peter Nachtwey
Member
Bingo. Oh no!
24 1s = 11111111 11111111 11111111B = 0FFFFFFH = 16777215
The floating point format is
SEEE EEEE EMMM MMMM MMMM MMMM MMMM MMMM
The sign is not part of the mantissa. The mantissa is 23 bits with the msb assumed to be a 1. The exponent indicates what the value of the msb is. Binary powers of two have only zeros in the mantissa bits
You should have stopped think right here.rdrast said:Largest odd integer for a 32 bit IEEE 754 float? Hrm...
It should be a 24 bit mantissa, no? so 16777215?
24 1s = 11111111 11111111 11111111B = 0FFFFFFH = 16777215
The floating point format is
SEEE EEEE EMMM MMMM MMMM MMMM MMMM MMMM
The sign is not part of the mantissa. The mantissa is 23 bits with the msb assumed to be a 1. The exponent indicates what the value of the msb is. Binary powers of two have only zeros in the mantissa bits