Skip to main content

SmallFloat

Functions

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

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

ParamType
sizenumber

uintToFloatRoundDown(size) ⇒ number

Kind: global function

ParamType
sizenumber

floatToUint(floatValue) ⇒ number

Kind: global function

ParamType
floatValuenumber