round

Rounds a number to the closest integer.

round(number) → returns Numeric

Argument Reference for the round function

number

Required: Yes

Examples sample code invoking the round function


Round 1.56

round(1.56)

Expected Result: 2


Fork me on GitHub