
Contents
More
Helpers to cast float8 into float32 or the other way around.
Search a value into a sorted array of values.
value – float32 value to search
sorted_values – list of tuple[(float 32, byte)]
byte
The function searches into the first column the closest value andreturn the value on the second columns.
Displays a float 8 E4M3 into b.
value – value to display (int)
sign – number of bits for the sign
exponent – number of bits for the exponent
mantissa – number of bits for the mantissa
string
Displays a float 8 E5M2 into binary format.
value – value to display (int)
sign – number of bits for the sign
exponent – number of bits for the exponent
mantissa – number of bits for the mantissa
string
Displays any float encoded with 1 bit for the sign,exponent bit for the exponent andmantissa bit for themantissa.
value – value to display (int)
sign – number of bits for the sign
exponent – number of bits for the exponent
mantissa – number of bits for the mantissa
string
Displays a float32 into b.
value – value to display (float16)
sign – number of bits for the sign
exponent – number of bits for the exponent
mantissa – number of bits for the mantissa
string
Displays a float32 into b.
value – value to display (float32)
sign – number of bits for the sign
exponent – number of bits for the exponent
mantissa – number of bits for the mantissa
string
Displays an integer as bits.
ival – value to display (float32)
sign – number of bits for the sign
exponent – number of bits for the exponent
mantissa – number of bits for the mantissa
string
Casts a float E4M3 encoded as an integer into a float.
ival – byte
fn – no inifinite values
uz – no negative zero
float (float 32)
Casts a float 8 encoded as an integer into a float.
ival – byte
fn – no infinite values
uz – no negative zero
float (float 32)
Casts a float E5M2 encoded as an integer into a float.
ival – byte
fn – no inifinite values
uz – no negative values
float (float 32)
Casts a float 8 encoded as an integer into a float.
ival – byte
fn – no infinite values
uz – no negative zero
float (float 32)
Converts a float32 into a float E4M3.
x – numpy.float32
fn – no infinite values
uz – no negative zero
saturate – to convert out of range and infinities to max value if True
byte
Converts a float32 into a float E5M2.
x – numpy.float32
fn – no infinite values
uz – no negative zero
saturate – to convert out of range and infinities to max value if True
byte
Casts a float 32 into a float E4M3.
value – float
fn – no infinite values
uz – no negative zero
saturate – to convert out of range and infinities to max value if True
byte
Casts a float 32 into a float E5M2.
value – float
fn – no infinite values
uz – no negative zero
saturate – to convert out of range and infinities to max value if True
byte