Converts units.
double convertUnits(double value, int from, int to) { return (from == to) ? value : value * _unitsProportions[from] / _unitsProportions[to]; }