NaN

Creates a quiet NaN value using the specified payload Notes: Payloads are masked to fit the current representation, having a limited bit width of to mant_dig - 2;

  1. D NaN(T payload)
    D
    NaN
    (
    D
    T
    )
    (
    const T payload
    )
    if (
    isDecimal!D &&
    isUnsigned!T
    )
  2. decimal128 NaN(T payloadHi, T payloadLo)

Examples

auto a = NaN!decimal32(12345U);
auto b = NaN!decimal64(12345UL);
decimal128 c = NaN(123U, 456U);

Meta