Use double instead od int for seconds

This commit is contained in:
Alex Sytnyk 2018-06-12 16:59:57 +03:00
parent e5a7b39cea
commit 95405db8da

View file

@ -79,7 +79,7 @@ public class CoordinateInputFormats {
DMS res = new DMS();
res.degrees = ddm.degrees;
res.minutes = (int) ddm.decimalMinutes;
res.seconds = (int) ((ddm.decimalMinutes - res.minutes) * 60);
res.seconds = (ddm.decimalMinutes - res.minutes) * 60;
return res;
}
@ -91,6 +91,6 @@ public class CoordinateInputFormats {
public static class DMS {
public int degrees;
public int minutes;
public int seconds;
public double seconds;
}
}