tjson-spec icon indicating copy to clipboard operation
tjson-spec copied to clipboard

Add a Decimal Number Type

Open jbourquin opened this issue 8 years ago • 1 comments

A decimal number type serialized as a string would allow for an 'exact' representation of a floating point number. This would be very beneficial to monetary applications or applications that require significant decimal places in the number.

It would also help developers avoid errors in the way the binary floats are represented across different systems:

i.e. 3.3 == 3.3000000000000003

jbourquin avatar Apr 25 '17 22:04 jbourquin

I have definitely considered this in the past. Thanks for opening an issue about it.

tarcieri avatar Apr 25 '17 22:04 tarcieri