Extracts the current payload from a NaN value Note: These functions do not check if x is truly a NaN value before extracting the payload. Using them on finite values will extract a part of the coefficient
decimal32 x = decimal32("nan(123)"); decimal64 y = decimal64("nan(456)"); decimal128 z = decimal128("nan(789)"); assert (getNaNPayload(x) == 123); assert (getNaNPayload(y) == 456); ulong hi; assert (getNaNPayload(z, hi) == 789 && hi == 0);
See Implementation
Extracts the current payload from a NaN value Note: These functions do not check if x is truly a NaN value before extracting the payload. Using them on finite values will extract a part of the coefficient