changequote({,}) define({_TITLE_},{Varkon MBS Programmers manual}) define({_SUBTITLE_},{- round - Function}) define({_INDEXLINK_},{index}) define({_STYLE_},{../varkonstyle.css}) include(../../include/header.inc)
Rounds a FLOAT argument to the nearest (lower or higher) INT.
i:=round(x); int i; float x;
x | - A value. |
None.
The INT value closest to x.
i:=round(10.25); ! Returns 10 i:=round(10.75) ! Returns 11 i:=round(0); ! Returns 0 i:=round(-10.25); ! Returns -10 i:=round(-10.75); ! Returns -11include(../../include/svnversion.inc) include(../../include/footer.inc)