floor ( x -- y )
Factor handbook > The language > Numbers > Mathematical functions > Arithmetic functions

Prev:ceiling ( x -- y )
Next:truncate ( x -- y )


Vocabulary
math.functions

Inputs and outputs
xa real
ya whole real number


Word description
Outputs the greatest whole number smaller than or equal to x.

Notes
The result is not necessarily an integer.

Definition