- public double parse(String s) throws NumberFormatException {
- double v = Double.parseDouble(s);
- if (AltosConvert.imperial_units)
- v = AltosConvert.feet_to_meters(v);
+ public double inverse(double v, boolean imperial_units) {
+ if (imperial_units)
+ return AltosConvert.feet_to_meters(v);