diff options
Diffstat (limited to 'users/sterni/nix/num')
-rw-r--r-- | users/sterni/nix/num/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/users/sterni/nix/num/default.nix b/users/sterni/nix/num/default.nix index 640493083722..81e2f8377f3b 100644 --- a/users/sterni/nix/num/default.nix +++ b/users/sterni/nix/num/default.nix @@ -8,6 +8,7 @@ rec { sub ; + sign = i: if i < 0 then -1 else 1; abs = i: if i < 0 then -i else i; inRange = a: b: x: x >= a && x <= b; |