diff --git a/www/js/config/imperial.js b/www/js/config/imperial.js index 1503bfa62..7ca224ac5 100644 --- a/www/js/config/imperial.js +++ b/www/js/config/imperial.js @@ -30,7 +30,7 @@ angular.module('emission.config.imperial', ['emission.plugin.logger']) }; ic.getMph = function(metersPerSecond) { - return (KM_TO_MILES * ic.getKmph(metersPerSecond)); + return (KM_TO_MILES * Number.parseFloat(ic.getKmph(metersPerSecond))).toFixed(2); }; ic.getFormattedDistance = USE_IMPERIAL? ic.getFormattedDistanceInMiles : ic.getFormattedDistanceInKm;