public int compareTo(Money other) { return Double.compare(units/Math.pow(10, precision), other.getUnits()/Math.pow(10, other.getPrecision())); }
public int compareTo(Money other) { return Double.compare(units/Math.pow(10, precision), other.getUnits()/Math.pow(10, other.getPrecision())); }