function round(value: NumberType, options: RoundingConfigType = {}): string

Rounds a number based on the specified precision and rounding mode.

Params

Returns

(string): The rounded number as a string.

Example

value
mode
precision

round(0);

Result: 0

COPYRIGHT © 2026