isNaN property

Logic isNaN
latefinal

Return a Logic 1if this FloatingPoint is Not a Number (NaN) by having its exponent field set to the NaN value (typically all ones) and a non-zero mantissa.

Implementation

late final Logic isNaN = (supportsSignalingNaNs
        ? exponent.eq(valuePopulator().nan.exponent) & _fraction.or()
        : exponent.eq(valuePopulator().nan.exponent) &
            mantissa.eq(valuePopulator().nan.mantissa))
    .named(_nameJoin('isNaN', name), naming: Naming.mergeable);