isNaN property

Logic isNaN
latefinal

Return a Logic true if 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 isNaN = exponent.eq(floatingPointValue.nan.exponent) &
    mantissa.or().named(
          _nameJoin('isNaN', name),
          naming: Naming.mergeable,
        );