Оператор ~/ метод
- BigInt other
Оператор целочисленного деления с отбрасыванием остатка.
Выполняет целочисленное деление с отбрасыванием остатка.
Остаток можно вычислить с помощью метода remainder.
Примеры:
var seven = BigInt.from(7); var three = BigInt.from(3); seven ~/ three; // => 2 (-seven) ~/ three; // => -2 seven ~/ -three; // => -2 seven.remainder(three); // => 1 (-seven).remainder(three); // => -1 seven.remainder(-three); // => 1
Реализация
BigInt operator ~/(BigInt other);
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-core/BigInt/operator_truncate_divide.html