In Java what is the maximum number in the mantissa part that can be stored?
In this link below http://steve.hollasch.net/cgindex/coding/ieeefloat.html
Sign Exponent Fraction Bias
Single Precision 1 [31] 8 [30-23] 23 [22-00] 127
Does it mean that we can have only 0 to 2^8 combinations stored?
Everything you want to know is on the wikipedia page for IEEE-754: http://en.wikipedia.org/wiki/IEEE_754-2008.
The mantissa is 23 bits in a float
, but the stored value is normalized, meaning that there's an implied leading 1 followed by a decimal point. This takes it to 24 effective bits.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With