Convert numbers to lua using toJSON (float precision).
This commit is contained in:
parent
78f17cae8d
commit
95e7679c82
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ let
|
|||
numberToLua =
|
||||
number:
|
||||
assert ((builtins.isInt number) || (builtins.isFloat number));
|
||||
toString number;
|
||||
builtins.toJSON number;
|
||||
|
||||
/**
|
||||
Converts a nix list into a Lua Table.
|
||||
|
|
Loading…
Reference in a new issue