-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement better support for floats (#71)
this change uses `fround` when available to make a better decision on if a number is a 32 or 64 bit floating point number. This means that we can more safely use floats in msgpack without losing precision. In the case where `Math.fround` is not defined (I'M LOOKIN AT YOU, IE10), this code defaults to using a float64 so that we don't accidentally lose precision like we did with the previous implementation
- Loading branch information
1 parent
db540b3
commit 52e8753
Showing
2 changed files
with
84 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters