ifloor

Syntax

int ifloor(double number)

Arguments

number
Any double or float number.

Return

The rounded value, as an integer.

Description

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

Example

%ffp

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

See Also

ceil, iceil, ichop, ifloor, iround