changequote({,}) define({_TITLE_},{Varkon MBS Programmers manual}) define({_SUBTITLE_},{- trunc - Function}) define({_INDEXLINK_},{index}) define({_STYLE_},{../varkonstyle.css}) include(../../include/header.inc)
Returns the integer part of an argument (truncates).
i:=trunc(x); int i; float x;
x | - A value. |
None.
An INT value equal to the (truncated) integer part of x.
i:=trunc(10.75); ! Returns 10 i:=trunc(10.25); ! Returns 10 i:=trunc(0.0); ! Returns 0 i:=trunc(-10.25); ! Returns -10 i:=trunc(-10.75); ! Returns -10include(../../include/svnversion.inc) include(../../include/footer.inc)