mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-16 11:16:15 +02:00
7f7f99f350
Closes #4782 Note: even though the type is internally called `NixFloat`, it's actually a `double`.
9 lines
200 B
Nix
9 lines
200 B
Nix
with import ./lib.nix;
|
|
|
|
let
|
|
n1 = builtins.floor 23.5;
|
|
n2 = builtins.ceil 23.5;
|
|
n3 = builtins.floor 23;
|
|
n4 = builtins.ceil 23;
|
|
in
|
|
builtins.concatStringsSep ";" (map toString [ n1 n2 n3 n4 ])
|