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)
  2. decimal128 NaN(T payloadHi, T payloadLo)
    NaN
    (
    T
    )
    (
    const T payloadHi
    ,
    const T payloadLo
    )
    if (
    isUnsigned!T
    )

Examples

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

Meta