round

Rounds a number to the closest integer.

round(number) → returns Numeric

round Argument Reference

number
Required

Examples sample code invoking the round function


Round 1.56

round(1.56)

Expected Result: 2


Fork me on GitHub