Java Kilometer Convert to kmToMiles(double k)

Here you can find the source of kmToMiles(double k)

Description

km To Miles

License

MIT License

Declaration

public static double kmToMiles(double k) 

Method Source Code

//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;
    }
}

Related

  1. kmToKnots(int km)
  2. kmToRtheta(final double x, final double y)