Decimal.this

Constructs Decimal from the floating point number using the Ryu algorithm.

The number is the shortest decimal representation that being converted back would result the same floating-point number.

  1. this(const(C)[] str, int exponentShift)
  2. this(T x)
    struct Decimal(uint size64)
    @safe
    this
    (
    T
    )
    (
    const T x
    )
    if (
    isFloatingPoint!T &&
    size64 >= 1 + (T.mant_dig >= 64)
    )
    if (
    size64 &&
    size64 <= ushort.max
    )