Skip to main content

ROUND

Rounds a number to a specified number of digits.

CategoryMath
SyntaxROUND(number, [num_digits])

Parameters

ParameterRequiredDescription
numberRequiredThe number you want to round.
num_digitsOptionalThe number of digits to which you want to round (defaults to 0).

Example

ROUND(3.14159, 2)  // → 3.14
ROUND(2.5) // → 3

Auto-generated from the EngCanvas function registry.