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 =
|
numberToLua =
|
||||||
number:
|
number:
|
||||||
assert ((builtins.isInt number) || (builtins.isFloat number));
|
assert ((builtins.isInt number) || (builtins.isFloat number));
|
||||||
toString number;
|
builtins.toJSON number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Converts a nix list into a Lua Table.
|
Converts a nix list into a Lua Table.
|
||||||
|
|
Loading…
Reference in a new issue