Difference between revisions of "Round"

From Kolmafia
Jump to navigation Jump to search
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…')
 
imported>StDoodle
m
Line 5: Line 5:
 
FunctionPage|
 
FunctionPage|
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=|
+
function_category=Math and Numbers|
  
 
function1={{Function|
 
function1={{Function|

Revision as of 00:28, 13 March 2010

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.