Convert numbers to lua using toJSON (float precision).

This commit is contained in:
Kevin Baensch 2024-05-18 11:08:04 +02:00
parent 78f17cae8d
commit 95e7679c82
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

@ -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.