mirror of
https://github.com/pkulchenko/serpent.git
synced 2024-12-13 04:28:27 +00:00
Added version number to numformat
when the change was introduced (#17).
This commit is contained in:
parent
96106650b1
commit
879580fb21
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user