Math.round

Math.round

Math.round

Function

Rounding. Returns the rounded number.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valueNumberYesNoneThe number that participates in rounding.

Return value

TypeDescription
Int/FloatReturns the rounded number. An Int is returned for integer results, and a Float for non-integer or non-finite results.

Example

Notes

  • Integer results return Int.