Rounds the specified number to the nearest integer.

Syntax

Smartsite SXML CopyCode image Copy Code
float math.round(float a)
float math.round(float a, integer digits)

Parameters

Name Data Type Description
a Float Input number.
digits Integer Number of digits.

Return Value

Data Type Description
Float The nearest integer.

Expand image Examples

SXML