isZero property

bool get isZero

Return true if the represented floating point number is zero. Note that the equality operator will treat FloatingPointConstants.positiveZero and FloatingPointConstants.negativeZero as equal.

Implementation

bool get isZero =>
    this ==
    FloatingPointValue.getFloatingPointConstant(
        FloatingPointConstants.positiveZero, exponent.width, mantissa.width);