Older Newer
Tue, 07 Jan 2020 03:13:12 . . . . SyneRyder [Function definition]


Changes by last author:

Added:
= iround =

== Syntax ==

int round(double number)

== Arguments ==

:number

::Any double or float number.

== Return ==

The rounded value as an integer.

== Description ==

Returns the value of number rounded to the nearest or even integral value as an integer.

== Example ==

<code>

%ffp

OnFilterStart:

{

Info("Rounding 2.543 gives %d", iround(2.543));

Info("Rounding -2.500 gives %d", iround(-2.500));

}

</code>

== See Also ==

iceil, ichop, ifloor, round, C Runtime Functions