Rounds a Number.
Syntax
Parameters
subject
- The number to round.places
- The number of places to round to. If positive, that many decimal places are used to round to (if applicable). If negative, the rounding is done the opposite way.method
- The rounding method to use.0
(default) - Standard rounding will be used (nearest number).1
- All numbers will be rounded down.2
- All numbers will be rounded up.
Result
Returns subject
rounded to a specific number of places.