operator ~/ method
Truncating integer division operator.
Performs a truncating integer division, where the remainder is discarded.
The remainder can be computed using the remainder method.
Examples:
var seven = Obj(BigInt.from(7));
var three = Obj(BigInt.from(3));
seven ~/ three; // => 2
(-seven) ~/ three; // => -2
seven ~/ -three; // => -2
seven.remainder(three); // => 1
(-seven).remainder(three); // => -1
seven.remainder(-three); // => 1
Implementation
Obj<BigInt> operator ~/(Obj<BigInt> other) => (value ~/ other.value).obj;