Function Karana::Math::isNaNWithPayload

Function Karana::Math::isNaNWithPayload#

Function Documentation#

bool Karana::Math::isNaNWithPayload(const double &candidate, uint64_t payload)#

Whether a double is a NaN with a given mantissa payload.

Parameters:
  • candidate – The candidate double to check.

  • expected – The payload to check for.

Returns:

Whether candidate is a NaN with the given payload.