UNPKG

@ssv/core

Version:

Core utilities, components and services for browser and node

8 lines (7 loc) 328 B
/** * Rounds numeric value to a specified precision (default 2) e.g. 20.556 => 20.57. * @param value amount to round e.g. 20.556 * @param precision decimal places to round to e.g. 2 (default: 2) * @returns {number} rounded number */ export declare function round(value: string | number, precision?: number): number;