From 7b5892f75a75363a656ede8befb419245aa218b5 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 24 Dec 2017 14:28:29 -0800 Subject: 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 --- src/scheme/ao_scheme_builtin.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/scheme/ao_scheme_builtin.txt') 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 string>? -- cgit v1.2.3