@Override
    public boolean equals(Object other) {
        if(other == this) return true;
        if(!(other instanceof Quantity)) return false;
        //return value == ((Quantity) other).convert(this.unit).value;
        //return value - ((Quantity) other).convert(this.unit).value < 0.00001;
        double otherValue = ((Quantity) other).convertTo(this.unit);
        return this.value == otherValue;
    }