Android Speed Readable Format speedToMPH(double kmh)

Here you can find the source of speedToMPH(double kmh)

Description

speed To MPH

Declaration

public static String speedToMPH(double kmh) 

Method Source Code

//package com.java2s;

public class Main {
    public static String speedToMPH(double kmh) {
        return round(kmh * 0.621) + " mph";
    }/*from  w ww  .  ja  v a  2s.co m*/

    public static double round(double value) {
        return ((int) (value * 10) / 10.0);
    }
}

Related

  1. speedToKMH(double kmh)
  2. speedToPace(float speedInMetersPerSecond, boolean imperial)
  3. convertSpeed(float speed, int fromScale, int toScale)