mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 09:33:06 +02:00
Use the 3.6 constant for MS_TO_KMH to prevent rounding error
This commit is contained in:
@@ -40,7 +40,7 @@ public class UnitConversions {
|
||||
public static final double M_TO_KM = 1 / 1000.0;
|
||||
|
||||
// multiplication factor to convert meters per second to kilometers per hour
|
||||
public static final double MS_TO_KMH = M_TO_KM * 60 * 60;
|
||||
public static final double MS_TO_KMH = 3.6;
|
||||
|
||||
// multiplication factor to convert meters to miles
|
||||
public static final double M_TO_MI = M_TO_KM * KM_TO_MI;
|
||||
|
||||
Reference in New Issue
Block a user