Math.round
round — Rounds to the closest whole number.
Description
Math.round(number number)
Parameters
Name | Description | Type | Default | Optional |
---|---|---|---|---|
number | number | No |
Examples
Example #1 – round example
round — Rounds to the closest whole number.
Math.round(number number)
Name | Description | Type | Default | Optional |
---|---|---|---|---|
number | number | No |