API Reference / quantizeUnit · function
Function: quantizeUnit()
function quantizeUnit(x, scale): number;
Quantize a value to integer units of 1/scale (e.g. scale 3600 turns
degrees into arcseconds). The single rounding rule of canonical mode.
Parameters
| Parameter | Type |
|---|---|
x | number |
scale | number |
Returns
number