BigInt.opAssign

  1. ref opAssign(ulong data)
    struct BigInt(size_t maxSize64)
    ref return
    opAssign
    (
    ulong data
    )
    if (
    maxSize64 &&
    maxSize64 <= ushort.max
    )
  2. ref opAssign(BigInt!rhsMaxSize64 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