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 }}
This repository was archived by the owner on Nov 12, 2020. It is now read-only.
As in JavaScript, number output is in fixed notation, except when it is greater that 10e21 and when it starts with 0.followed by more than 5 zeros (cf. http://2ality.com/2012/03/displaying-numbers.html), the cast to a number with parseFloat and the final string equality can only handle the range between 10e21 and 0.00000x cases.
Possible solution
Using a RegExp. In that case, is the usage of parseFloat still appropriate?
Description of the issue
As in JavaScript,
numberoutput is in fixed notation, except when it is greater that 10e21 and when it starts with0.followed by more than 5 zeros (cf. http://2ality.com/2012/03/displaying-numbers.html), the cast to anumberwithparseFloatand the finalstringequality can only handle the range between10e21and0.00000xcases.Possible solution
Using a RegExp. In that case, is the usage of
parseFloatstill appropriate?