• 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 = 2^(exponent - bias) * (1 + mantissa / 2 ^ numMantissaBits) ufloatM9E5BitsToNumber = 2^(exponent - bias) * (mantissa / 2 ^ numMantissaBits) = 2^(exponent - bias - numMantissaBits) * mantissa

    Parameters

    • bits: number
    • fmt: FloatFormat

    Returns number

Generated using TypeDoc