Java Millimeter To Inch millimetersToInches(Double millimeters)

Here you can find the source of millimetersToInches(Double millimeters)

Description

Converts millimeters to inches.

License

Open Source License

Declaration

public static Double millimetersToInches(Double millimeters) 

Method Source Code

//package com.java2s;
/**//  w w w . j  a v a  2 s. c om
 * Copyright (c) 2010-2016, openHAB.org and others.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */

public class Main {
    /**
     * Converts millimeters to inches.
     */
    public static Double millimetersToInches(Double millimeters) {
        if (millimeters == null) {
            return null;
        }
        return millimeters * 0.0393700787;
    }
}

Related

  1. millimetersToInches(float value)
  2. millimeterToInch(double mm)