Added version number to numformat when the change was introduced (#17).

This commit is contained in:
Paul Kulchenko 2019-02-20 16:47:06 -08:00
parent 96106650b1
commit 879580fb21

View File

@ -76,7 +76,7 @@ Similar to `pcall` and `loadstring` calls, `load` returns status as the first va
* maxlength (number) -- specify max length for all table elements. * maxlength (number) -- specify max length for all table elements.
* metatostring (True/false) -- use `__tostring` metamethod when serializing tables (**v0.29**); * metatostring (True/false) -- use `__tostring` metamethod when serializing tables (**v0.29**);
set to `false` to disable and serialize the table as is, even when `__tostring` is present. set to `false` to disable and serialize the table as is, even when `__tostring` is present.
* numformat (string; "%.17g") -- specify format for numeric values (shortest possible round-trippable double). * numformat (string; "%.17g") -- specify format for numeric values as shortest possible round-trippable double (**v0.30**).
Use "%.16g" for better readability and "%.17g" (the default value) to preserve floating point precision. Use "%.16g" for better readability and "%.17g" (the default value) to preserve floating point precision.
* valignore (table) -- allows to specify a list of values to ignore (as keys). * valignore (table) -- allows to specify a list of values to ignore (as keys).
* keyallow (table) -- allows to specify the list of keys to be serialized. * keyallow (table) -- allows to specify the list of keys to be serialized.