operator ~/ method

int operator ~/ (
  1. num other
)
override

Truncating division operator.

If either operand is a double then the result of the truncating division a ~/ b is equivalent to (a / b).truncate().toInt().

If both operands are ints then a ~/ b performs the truncating integer division.

Implementation

int operator ~/(num other);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-core/double/operator_truncate_divide.html