You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
parseFloat drops powers of 10 for 17+ digit significands with exponents 23..37 #3060
parseFloat, Number.parseFloat, and f64.parse are off by up to 10^15 when the parsed integer significand exceeds 2^53 - 1 (17+ significant digits) and the remaining decimal exponent is in 23..37. This also breaks parseFloat(x.toString()) round-tripping in that range.
In scientific, when exp > 22 && exp <= 22 + 15, significandf is scaled and exp is set to 22 before checking significand <= 9007199254740991, so the fallback scaleup(significand, exp) receives the unscaled integer significand with exp = 22.
Activity