roundToUnit
Rounds value
by unit
.
function roundToUnit(value: number, unit: number): number;
Example
roundToUnit(320980, 1000); // 321000
Rounds value
by unit
.
function roundToUnit(value: number, unit: number): number;
roundToUnit(320980, 1000); // 321000