SmallFloat
Functions
- uintToFloatRoundUp(size) ⇒
number
Bin sizes follow floating point (exponent + mantissa) distribution (piecewise linear log approx) This ensures that for each size class, the average overhead percentage stays the same
-
uintToFloatRoundDown(size) ⇒
number -
floatToUint(floatValue) ⇒
number
uintToFloatRoundUp(size) ⇒ number
Bin sizes follow floating point (exponent + mantissa) distribution (piecewise linear log approx) This ensures that for each size class, the average overhead percentage stays the same
Kind: global function
Returns: number - uint32
| Param | Type |
|---|---|
| size | number |
uintToFloatRoundDown(size) ⇒ number
Kind: global function
| Param | Type |
|---|---|
| size | number |
floatToUint(floatValue) ⇒ number
Kind: global function
| Param | Type |
|---|---|
| floatValue | number |