compareMagnitude method

double compareMagnitude(
  1. T other
)

Returns the difference in magnitude between this and another measurement.

For example:

meters(3).compareMagnitude(deka.meters(3));  // 0.1

Implementation

double compareMagnitude(final T other) => _preciseSI() / other._preciseSI();