operator <= method

bool operator <=(
  1. Quantity other
)

Whether this quantity is numerically smaller than or equal to other in common units.

Implementation

bool operator <=(Quantity other) => compareTo(other) <= 0;