mirror of
https://github.com/NixOS/nix.git
synced 2024-11-27 01:02:34 +00:00
7f7f99f350
Closes #4782 Note: even though the type is internally called `NixFloat`, it's actually a `double`.
10 lines
200 B
Nix
10 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 ])
|