Changeset 10292 in josm for trunk/src/org/openstreetmap/josm/data/SystemOfMeasurement.java
- Timestamp:
- 2016-05-28T23:16:07+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/SystemOfMeasurement.java
r10215 r10292 268 268 return format.format(v) + ' ' + unit; 269 269 } 270 return String.format(Locale.US, "%." + (v < 9.999999 ? 2 : 1) + "f %s", v, unit);270 return String.format(Locale.US, v < 9.999999 ? "%.2f %s" : "%.1f %s", v, unit); 271 271 } 272 272 }
Note:
See TracChangeset
for help on using the changeset viewer.