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
x
to the number of digits after the decimal point. Ifdigits
is omitted, it returns the nearest integer to x.See
Math.round()