Round x to the number of digits after the decimal point. If digits is omitted, it returns the nearest integer to x.
x
digits
Math.round()
Optional
Generated using TypeDoc
Round
xto the number of digits after the decimal point. Ifdigitsis omitted, it returns the nearest integer to x.See
Math.round()