Skip to main content

floor

Discworld driver help

floor

Name

floor() - round a float down to the nearest integer

Synopsis

float floor( float f );

Description

Returns (as a float) the nearest integer number equal to or smaller than `f'.

See also

ceil(), round(), to_int(), to_float()