Click or drag to resize

math.round Function

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
math.round Function

The math.round function rounds a given expression to the nearest whole number integer value.

Syntax

Alchemy
math.round(expr);

Nomenclature

expr Required. An expression to round to the nearest whole number

Returns

The nearest whole-number integer value to the given expression.

Examples

Alchemy
PRINT math.round(3.142); /* 3 */
PRINT math.round(0.707); /* 1 */
See Also
  • The int function rounds a number down (never up) to the nearest integer.