This repository has been archived by the owner on Nov 12, 2020. It is now read-only.
Handle numbers greater that 10e21 and numbers that start with 0.
followed by more than 5 zeros.
#1
Labels
enhancement
New feature or request
Description of the issue
As in JavaScript,
number
output 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 anumber
withparseFloat
and the finalstring
equality can only handle the range between10e21
and0.00000x
cases.Possible solution
Using a RegExp. In that case, is the usage of
parseFloat
still appropriate?The text was updated successfully, but these errors were encountered: