There is precedence for using numbers around 20 for significant digit cutoffs
in the spec. For example, if you look at how number tokens are parsed in the
spec (ยง11.8.3.1), the implementation has the option to ignore significant
digits after the 20th. That's not a bug; we did that intentionally in the
early days of ECMAScript as a compromise between always requiring exact
precision and cutting off after the 17th digit, which would get a significant
fraction of values wrong.
Waldemar
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss