-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How would BigDecimal integrate into the web platform? #4
Comments
|
I just want to point out that JSON as a format supports arbitrary precision for numbers, but most parsers map them to float datatypes and have no options to warn about precision loss.
An extended parser could parse BigDecimal literals like |
TLDR Non-integer numbers in HTML are semantically IEEE 754 doubles so there may be some issues with HTML syntax/serialization (at least, potential loss of information/failure of roundtripness). It seems to me that value sanitization of some elements in HTML may be impacted. I'm thinking mainly of |
In #2, the README mentions HTML serialization and WebPayments. Are there any other Web Platform APIs that would make sense to integrate BigDecimal into?
The text was updated successfully, but these errors were encountered: