BigFixed.this

Construct BigFixed from BigInt

  1. this(T x, size_t Q)
  2. this(T x, size_t Q)
    struct BigFixed
    pure nothrow
    this
    (
    T : BigInt
    )
    (
    T x
    ,
    size_t Q
    )

Examples

immutable ulong i = ulong.max;
immutable bfi1 = BigFixed(i, 10);
immutable bfi2 = BigFixed(BigInt(ulong.max), 10);
assert(bfi1 == bfi2);

Meta