Skip to content

Commit

Permalink
Fixed typo in README
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Feb 20, 2012
1 parent c0a0787 commit c3f3782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README
Expand Up @@ -46,7 +46,7 @@ of the library must be well understood to avoid problems:
composed of incrementing integers starting at 1 end ending at N, without holes,
without additional non numerical keys. All the other tables are converted into
maps.
* An empty table is always converted into a MessagePack map, the rationale is that empty lists are much more common than empty maps (usually used to represent objects with fields).
* An empty table is always converted into a MessagePack array, the rationale is that empty lists are much more common than empty maps (usually used to represent objects with fields).
* A Lua number is converted into an integer type if floor(number) == number, otherwise it is converted into the MessagePack float or double value.
* When a Lua number is converted to float or double, the former is preferred if there is no loss of precision compared to the double representation.
* When a MessagePack big integer (64 bit) is converted to a Lua number it is possible that the resulting number will not represent the original number but just an approximation. This is unavoidable because the Lua numerical type is usually a double precision floating point type.
Expand Down

0 comments on commit c3f3782

Please sign in to comment.