floor

Syntax

double floor(double number)

Arguments

number
Any double or float number.

Return

The rounded value.

Description

Returns the largest integral value smaller than or equal to number.

Example

%ffp

OnFilterStart:
{
    Info("Rounding 2.345 to floor gives %f", floor(2.345));
    Info("Rounding -2.345 to floor gives %f", floor(-2.345));
}

See Also

ceil, ifloor