Use double instead od int for seconds
This commit is contained in:
parent
e5a7b39cea
commit
95405db8da
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue