абстрактный метод operator %
- BigInt other
Оператор евклидова деления с остатком.
Возвращает остаток от евклидова деления. Евклидово деление двух целых чисел a и b дает два целых числа q и r, таких что a == b * q + r и 0 <= r < b.abs().
Знак возвращаемого значения r всегда положительный.
См. remainder, чтобы узнать об остатке от деления с усечением.
Пример:
print(BigInt.from(5) % BigInt.from(3)); // 2 print(BigInt.from(-5) % BigInt.from(3)); // 1 print(BigInt.from(5) % BigInt.from(-3)); // 2 print(BigInt.from(-5) % BigInt.from(-3)); // 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.19.6/dart-core/BigInt/operator_modulo.html