round
| Explanation | Rounds to the specified digit. If the number of digits is omitted, the number after the decimal point is rounded off. Rounding of the round function (when the number of digits = 0) will be Value + the maximum (positive direction) of integers less than or equal to 0.5 *Added since Version 2.0.0* | |
| Call format | var r = round( arg, n ) | |
| Return value | Returns the value rounded to the specified number of digits. | |
| Arguments | Number arg | Original number |
| Number n | Position of the digit to be rounded | |
| Exception | None | |
| Example of use | | |
| Related item | rounddown, roundup, roundm methods | |