Normalize LatLon to displaying 5 digits

This commit is contained in:
sonora 2016-08-31 23:50:33 +02:00
parent c668a76b63
commit 43364fd090

View file

@ -131,7 +131,7 @@ public class LocationConvert {
coordinate = -coordinate;
}
DecimalFormat df = new DecimalFormat("###.#####", new DecimalFormatSymbols(Locale.US)); //$NON-NLS-1$
DecimalFormat df = new DecimalFormat("##0.00000", new DecimalFormatSymbols(Locale.US)); //$NON-NLS-1$
if (outputType == FORMAT_MINUTES || outputType == FORMAT_SECONDS) {
int degrees = (int) Math.floor(coordinate);
sb.append(degrees);