3.4. unit_scaling.formats

Classes for simulating (non-standard) number formats.

Functions

format_to_tuple(format)

Convert the format into a tuple of (exponent_bits, mantissa_bits)

tuple_to_format(t)

Given a tuple of (exponent_bits, mantissa_bits) returns the corresponding FPFormat

Classes

FPFormat(exponent_bits, mantissa_bits[, ...])

Generic representation of a floating-point number format.