Android Speed Readable Format speedToKMH(double kmh)

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

Description

speed To KMH

Declaration

public static String speedToKMH(double kmh) 

Method Source Code

//package com.java2s;

public class Main {
    public static String speedToKMH(double kmh) {
        return round(kmh) + " km/h";
    }/*  ww  w .  j  a va  2s  .c  om*/

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

Related

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