Older Newer
Tue, 11 Dec 2007 11:25:00 . . . . afh [Add links to See also.]


Changes by last author:

Added:
= 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 ==

<code>

%ffp

OnFilterStart:

{

Info("Rounding 2.345 to ceiling gives %f", ceil(2.345));

Info("Rounding -2.345 to ceiling gives %f", ceil(-2.345));

}

</code>

== Also see ==

:chop, floor, round, C Runtime Functions