Here you can find the source of kmToMiles(double k)
public static double kmToMiles(double k)
//package com.java2s; /*/*w w w . ja v a 2s .c om*/ * Utils.java - Copyright(c) 2013 Joe Pasqua * Provided under the MIT License. See the LICENSE file for details. * Created: Jul 8, 2013 */ public class Main { public static final double KilometersPerMile = 1.60934; public static double kmToMiles(double k) { return k / KilometersPerMile; } }