Older Newer
Mon, 05 May 2008 07:16:34 . . . . afh [now implemented]


Changes by last author:

Added:
= chop =

== Syntax ==

:double chop(double number)

== Arguments ==

:number

::Any double or float number.

== Return ==

:The truncated value.

== Description ==

:Returns the value of number truncated, towards 0.0, to an integral value.

== Example ==

<code>

%ffp

OnFilterStart:

{

Info("Chopping 2.543 towards 0.0 gives %f", chop(2.543));

Info("Chopping -2.345 towards 0.0 gives %f", chop(-2.345));

}

</code>

== Also see ==

:ceil, floor, round, C Runtime Functions