MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / is_nan

Method is_nan

tests/gtest/gtest.h:6757–6761  ·  view source on GitHub ↗

Returns true iff this is NAN (not a number).

Source from the content-addressed store, hash-verified

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:

Callers 1

AlmostEqualsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected