math.roundToEven
This function returns the nearest integer, rounding ties to even.
Syntax
math.roundToEven(inputNumber)
Arguments
Argument |
Type |
Description |
---|---|---|
inputNumber |
number |
The input number |
Returns
Type |
Description |
---|---|
number |
The nearest integer, rounding ties to even |
Examples
The function math.roundtoeven(12.5)
returns 12.0
.