summaryrefslogtreecommitdiff
path: root/src/scheme/ao_scheme_builtin.txt
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-12-24 14:28:29 -0800
committerKeith Packard <keithp@keithp.com>2017-12-24 14:31:31 -0800
commit7b5892f75a75363a656ede8befb419245aa218b5 (patch)
treebfc80cc2c541efc4524eaad82440386bc63fdbdb /src/scheme/ao_scheme_builtin.txt
parentd95486be96fe989f6984b3452c5c5d92897c5606 (diff)
altos/scheme: Add separate floor-quotient builtin
Does what 'quotient' did before, now quotient rounds towards zero while floor-quotient rounds down. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/scheme/ao_scheme_builtin.txt')
-rw-r--r--src/scheme/ao_scheme_builtin.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scheme/ao_scheme_builtin.txt b/src/scheme/ao_scheme_builtin.txt
index 23adf6ed..bdadbd6a 100644
--- a/src/scheme/ao_scheme_builtin.txt
+++ b/src/scheme/ao_scheme_builtin.txt
@@ -31,6 +31,7 @@ all f_lambda divide /
all f_lambda modulo modulo %
all f_lambda remainder
all f_lambda quotient
+all f_lambda floor_quotient floor-quotient
all f_lambda equal = eq? eqv?
all f_lambda less < string<?
all f_lambda greater > string>?