getNaNPayload

fnulong getNaNPayload(real x) @trusted pure nothrow @nogc

Extract an integral payload from a NaN.

Returns

the integer payload as a ulong.

For floats, the largest possible payload is 0x3F_FFFF. For doubles, it is 0x3_FFFF_FFFF_FFFF. For 80-bit or 128-bit reals, it is 0x3FFF_FFFF_FFFF_FFFF.