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));
}

Also see

chop, floor, round, C Runtime Functions