1
0

feat: initial commit; NixOS Era

This commit is contained in:
2025-11-20 22:13:05 +01:00
commit 8d0bddf680
46 changed files with 2044 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
function round
argparse -n 'round' -i 'p/precision=!_validate_int' -- $argv
or return 1;
set -l value (string trim -- $argv)
if [ -z $value ]
echoerr 'round: no input'
return 1
end
set -l precision 1
if set -q _flag_precision
set precision (math "10 ^ $_flag_precision")
end
set value (math "$value * $precision")
echo (math "round($value) / $precision")
end