gvvaughan / lyaml

LibYAML binding for Lua.
gvvaughan.github.io/lyaml
Other
209 stars 34 forks source link

How to encoding of numbers with a precision of 16 decimals? #59

Open ms2008 opened 1 year ago

ms2008 commented 1 year ago

By default, Lua displays only the 14 digits of a number. For numbers with a precision exceeding 14 decimals, Lua will output them using scientific notation, resulting in a loss of decimal precision. But it can actually represent integers with a precision of 2^53 bits.