What is the rationale for exponent and mantissa sizes in IEEE floating point standards?

后端 未结 2 1014
滥情空心
滥情空心 2020-12-07 04:33

I have a decent understanding of how floating point works, but I want to know how the specific exponent and mantissa sizes were decided upon. Are they optimal in some way? H

2条回答
  •  情深已故
    2020-12-07 04:51

    For 32-bit IEEE floats, the reasoning is that the precision should be at least as good as 24 bits fixed point.

    Why exactly 24 bits, I don't know, but it seems like a reasonable tradeoff.

    I suppose having a nice "round" number like that (mantissa + sign = 3 bytes, exponent = 1 byte) can also make implementations more efficient.

提交回复
热议问题