Error when talking about float range in MathJSON docs
somebody1234 opened this issue · 1 comments
somebody1234 commented
<li>the number is in the range \([-(2^{53})+1, (2^{53})-1]\) so it fits in a
64-bit float (<strong>IEEE 754-2008</strong>, 52-bit, about 15 digits of precision).</li>The example unescaped number given (-234.534e-46) is beyond -2^53+1 - which is around 1e16
arnog commented
The description is indeed incorrect. The number has to be representable as a 64-bit float, within a range of -1.797693134862315E+308 to -2.225073858507201E-308, or from 2.225073858507201E-308 to 1.797693134862315E+308 and with a precision of 15 digits.