operator ~/ method Null safety

BigInt operator ~/ (
  1. BigInt other
)

Truncating division operator.

Performs a truncating integer division, where the remainder is discarded.

The remainder can be computed using the remainder method.

Examples:

var seven = new BigInt.from(7);
var three = new 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

BigInt operator ~/(BigInt other);