Dart IEEE754 library


This library provides decoding and transforming IEEE754 floating point numbers
in binary format, double format, or as exponent and mantissa.

Examples of use cases are serializing and deserializing formats which use the
half or quad format, or encoding and converting numbers from arbitary exponents
and mantissas.


API reference

Example: Serializing to least precision

void serializeDouble(double value) {
    final floatParts = FloatParts.fromDouble(value);
    if (floatParts.isFloat16Lossless) {
    } else if (floatParts.isFloat32Lossless) {
    } else if (floatParts.isFloat64Lossless) {


View Github