@svta/common-media-library
Version:
A common library for media playback in JavaScript
14 lines • 499 B
TypeScript
/**
* This implements the rounding procedure described in step 2 of the "Serializing a Decimal" specification.
* This rounding style is known as "even rounding", "banker's rounding", or "commercial rounding".
*
* @param value - The value to round
* @param precision - The number of decimal places to round to
* @returns The rounded value
*
* @group Utils
*
* @beta
*/
export declare function roundToEven(value: number, precision: number): number;
//# sourceMappingURL=roundToEven.d.ts.map