scale-float-to-int
▸ function scaleFloatToInt
(a: number): number
Defined in scale-to-int/scale-float-to-int.ts:20
Returns the result of scaling the given float by a power of two such that it becomes an integer (overflow not possible) - the smallest such integer is returned.
- the result is exact (no round-off can occur)
Parameters:
| Name | Type | Description |
|---|---|---|
a | number | a double precision floating point number |
Returns: number