Older Newer
Mon, 05 May 2008 07:17:58 . . . . afh [now implemented]


Changes by last author:

Added:
= round =

== Syntax ==

:double round(double number)

== Arguments ==

:number

::Any double or float number.

== Return ==

:The rounded value.

== Description ==

:Returns the value of number rounded to the nearest or even integral value.

== Example ==

<code>

%ffp

OnFilterStart:

{

Info("Rounding 2.543 gives %f", round(2.543));

Info("Rounding -2.500 gives %f", round(-2.500));

}

</code>

== Also see ==

:ceil, chop, floor, C Runtime Functions