Round
Last updated
Was this helpful?
Last updated
Was this helpful?
Returns a number that is rounded to an integral number or a number of fractional digits.
Returns Invalid expression
if one of the parameter values is not a valid number.
This function uses 32-bit Integers, therefore the range of valid parameters is
-2147483648 and +2147483648
number
numeric
a number
digits
numeric
the number of fractional digits number
is rounded.
strategy
keyword
ToEven
(default) or AwayFromZero
(Runtime 4.2 only!)
Round(5.499)
5
Round(5.501)
6
Round(3.85, 1)
3.8
Round(5.489, 2)
5.49
Round(5.499, 2)
5.50
Round(3.85, 1)
3.8
Round(3.85, 1, ToEven
)
3.8 in Runtime 4.2 invalid expression in older runtimes
Round(3.85, 1, AwayFromZero
)
3.9 in Runtime 4.2 invalid expression in older runtimes