What is the maximum number in the mantissa part of a Java float?

前端 未结 3 1198
情深已故
情深已故 2021-01-12 01:14

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



        
3条回答
  •  失恋的感觉
    2021-01-12 01:41

    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.

提交回复
热议问题