floor

floor — rounds a real number down to its integer value.

Syntax

floor (number)

		

Arguments

number

Any number. Non-numbers are treated as zero.

Returns

The largest integer which is less than or equal to the number.

Example

Gamma> floor(1.2);
1
Gamma> floor(1.9);
1
Gamma> floor(-1.2);
-2
Gamma> floor(-1.9);
-2
Gamma> 
		

See Also

ceil, round