round(decimal,places)
round(decimal)
decimal
- is decimal. The decimal number to be rounded.
places
- is int. The number of places to round decimal too. Can be negative.
round(1234.567, 2 ) → 1234.57
round(decimal)
to round to the nearest integerround(1234.567) → 1235