round() function

Rounds a number to number of decimal places.
This function can take one or two arguments depending on what is needed.

Syntax

round(decimal,places)
round(decimal)

Arguments

decimal - is decimal. The decimal number to be rounded.
places - is int. The number of places to round decimal too. Can be negative.

Example

round(1234.567, 2 ) → 1234.57
use round(decimal) to round to the nearest integer
round(1234.567) → 1235