Round number | MATH_ROUND

Syntax

MATH_ROUND( [value] )

Parameters

value
A number. If the value is not a NUMBER, the FLOAT operation will be used to convert it.

Return Value

Returns a number.

Description

Round a number towards the nearest whole number

Examples

MATH_ROUND(-16.3) # returns -16
MATH_ROUND(16.7) # returns 17
MATH_ROUND(null) # returns 0
MATH_ROUND("-21.7") # returns -22