Older Newer
Tue, 07 Jan 2020 03:10:42 . . . . SyneRyder [Function definition]


Changes by last author:

Added:
= ifloor =

== Syntax ==

int ifloor(double number)

== Arguments ==

:number

::Any double or float number.

== Return ==

The rounded value, as an integer.

== Description ==

Returns the largest integral value smaller than or equal to number as an integer.

== Example ==

<code>

%ffp

OnFilterStart:

{

Info("Rounding 2.345 to floor gives %d", ifloor(2.345));

Info("Rounding -2.345 to floor gives %d", ifloor(-2.345));

}

</code>

== See Also ==

ceil, iceil, ichop, ifloor, iround