RosettaCodeData/Task/Real-constants-and-functions/ACL2/real-constants-and-functions.acl2
Ingy döt Net b83f433714 tasks a-s
2013-04-10 23:57:08 -07:00

11 lines
150 B
Text

define floor(x);
if x < 0 then
-intof(x);
else
intof(x);
endif;
enddefine;
define ceiling(x);
-floor(-x);
enddefine;