Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/data/SystemOfMeasurement.java
- Timestamp:
- 2015-06-20T23:42:21+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/SystemOfMeasurement.java
r7937 r8510 14 14 * A system of units used to express length and area measurements. 15 15 * @since 3406 (creation) 16 * @since 6992 (extraction in this package) 16 * @since 6992 (extraction in this package) 17 17 */ 18 18 public class SystemOfMeasurement { … … 41 41 */ 42 42 public static final SystemOfMeasurement NAUTICAL_MILE = new SystemOfMeasurement(185.2, "kbl", 1852, "NM"); 43 43 44 44 /** 45 45 * Known systems of measurement. … … 54 54 ALL_SYSTEMS.put(marktr("Nautical Mile"), NAUTICAL_MILE); 55 55 } 56 56 57 57 /** First value, in meters, used to translate unit according to above formula. */ 58 58 public final double aValue; … … 173 173 return format.format(v) + " " + unit; 174 174 } 175 return String.format(Locale.US, "%." + (v <9.999999 ? 2 : 1) + "f %s", v, unit);175 return String.format(Locale.US, "%." + (v < 9.999999 ? 2 : 1) + "f %s", v, unit); 176 176 } 177 177 }
Note:
See TracChangeset
for help on using the changeset viewer.