Handbook
Glossary
ceiling ( x -- y )
Factor handbook
»
The language
»
Numbers
»
Mathematical functions
»
Arithmetic functions
Prev:
sgn ( x -- n )
Next:
floor ( x -- y )
Vocabulary
math
.
functions
Inputs
x
a
real
Outputs
y
a whole real number
Word description
Outputs the least whole number greater than or equal to
x
.
Notes
The result is not necessarily an integer.
Definition
USING:
math
;
IN:
math.functions
:
ceiling
( x -- y )
neg
floor
neg
;
foldable
flushable