Returns true iff this is NAN (not a number).
| 6755 | |
| 6756 | // Returns true iff this is NAN (not a number). |
| 6757 | bool is_nan() const { |
| 6758 | // It's a NAN if the exponent bits are all ones and the fraction |
| 6759 | // bits are not entirely zeros. |
| 6760 | return (exponent_bits() == kExponentBitMask) && (fraction_bits() != 0); |
| 6761 | } |
| 6762 | |
| 6763 | // Returns true iff this number is at most kMaxUlps ULP's away from |
| 6764 | // rhs. In particular, this function: |