Round
Rounds a number to the closest integer.
Method Signature
Round(number=[numeric], precision=[integer])Arguments
Argument
Type
Required
Description
Default
number
numeric
true
The number to be rounded.
precision
integer
false
The number of decimal places to round to (default is 0).
0
Examples
Round 1.56
round( 1.56 );
Result: 2
Round 1.49
Result: 1
Round -0.9
Result: -1
Additional Examples
Related
Last updated
Was this helpful?
