truncate ( x -- y )
Factor handbook » The language » Numbers » Mathematical functions » Arithmetic functions

Prev:floor ( x -- y )
Next:round ( x -- y )


Vocabulary
math.functions

Inputs
xa real


Outputs
ya whole real number


Word description
Outputs the number that results from subtracting the fractional component of x.

Notes
The result is not necessarily an integer.

Definition


Methods