operator ~/ method

int operator ~/(
  1. T other
)

Returns the truncating division result of this and another measurement.

For example:

var fullHalfCups = cups(1.25) ~/ cups(0.5);  // 2

Attempting to divide by a measurement of magnitude zero, or attempting to divide an infinite measurement, will result in UnsupportedError (int cannot hold an infinite or NaN value).

Implementation

int operator ~/(final T other) => _preciseSI() ~/ other._preciseSI();