Closed Jannis closed 7 years ago
All JS numbers are doubles. There's no reliable way to detect integers, so for performance reasons we opted to interpret numbers as integers as that's far more common in the web use case. If you need floats you need to wrap them yourself first.
When using decimal numbers such as 123.456 as keys in maps, they are incorrectly turned into integers (
~i123.456
) when writing them with transit:Standalone decimals are fine: