The OpenD Programming Language

BigInt.opAssign

  1. ref opAssign(ulong data)
  2. ref opAssign(long data)
  3. ref opAssign(uint data)
  4. ref opAssign(int data)
  5. ref opAssign(UInt!rhsSize data)
    struct BigInt(uint size64)
    @safe ref return scope
    opAssign
    (
    uint rhsSize
    )
    (
    UInt!rhsSize data
    )
    if (
    size64 &&
    size64 <= ushort.max
    )
  6. ref opAssign(BigInt!rhsSize64 rhs)

Examples

import mir.math.constant: PI;
BigInt!4 integer = "-34010447314490204552169750449563978034784726557588085989975288830070948234680"; // constructor
assert(integer.sign);
integer.sign = false;
assert(integer == BigInt!4.fromHexString("4b313b23aa560e1b0985f89cbe6df5460860e39a64ba92b4abdd3ee77e4e05b8"));

Meta