ceil

Syntax

double ceil(double number)

Arguments

number
Any double or float number.

Return

The rounded value.

Description

Returns the smallest integral value greater than or equal to number.

Example

%ffp

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

See Also

chop, floor, iceil, round, C Runtime Functions