Round

From Kolmafia
Revision as of 00:27, 13 March 2010 by imported>StDoodle (Created page with '{{ #vardefine:name|round}}{{ #vardefine:return_type|int}}{{ FunctionPage| name={{#var:name}}| function_category=| function1={{Function| name={{#var:name}}| aggregate={{#var:agg…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
needs(code_samples);

Function Syntax

int round(float number )

  • number is the number to round

Rounds number to the nearest whole number, and returns the result.