Rounds a number to the closest integer.
Round(number=[numeric], precision=[integer])
number
numeric
true
The number to be rounded.
precision
integer
false
The number of decimal places to round to (default is 0).
0
Run Example
round( 1.56 );
Result: 2
Result: 1
Result: -1
Abs
Acos
Asin
Atn
Ceiling
Cos
DecrementValue
Exp
Fix
Floor
FormatBaseN
IncrementValue
InputBaseN
Int
Log
Log10
Max
Min
Pi
PrecisionEvaluate
Rand
Randomize
RandRange
Sgn
Sin
Sqr
Tan
Last updated 9 months ago
Was this helpful?
round( 1.49 );
round( -.9 );
pi = 3.1415926535; pi_rounded = Round( pi, 2 ); println( pi ); // 3.1415926535 println( pi_rounded ); // 3.14