Convert ufloat9e5 bits from rgb9e5ufloat to a JS number
The difference between floatBitsToNumber and ufloatBitsToNumber is that the latter doesn't use an implicit leading bit:
floatBitsToNumber
ufloatBitsToNumber
floatBitsToNumber = 2^(exponent - bias) * (1 + mantissa / 2 ^ numMantissaBits) ufloatM9E5BitsToNumber = 2^(exponent - bias) * (mantissa / 2 ^ numMantissaBits) = 2^(exponent - bias - numMantissaBits) * mantissa
Generated using TypeDoc
Convert ufloat9e5 bits from rgb9e5ufloat to a JS number
The difference between
floatBitsToNumber
andufloatBitsToNumber
is that the latter doesn't use an implicit leading bit:floatBitsToNumber = 2^(exponent - bias) * (1 + mantissa / 2 ^ numMantissaBits) ufloatM9E5BitsToNumber = 2^(exponent - bias) * (mantissa / 2 ^ numMantissaBits) = 2^(exponent - bias - numMantissaBits) * mantissa