Converts the weight value from pounds (lbs) to kilogram. - Java java.lang

Java examples for java.lang:Math Convert

Description

Converts the weight value from pounds (lbs) to kilogram.

Demo Code


//package com.java2s;

public class Main {
    /**/*from   w  ww . j  av a  2s  . c  o m*/
     * Converts the weight value from pounds (lbs) to kilogram.
     *
     * @param pounds weight value in pounds (lbs)
     * @return value in kilogram
     */
    public static double convertLbs2Kilogram(double pounds) {
        return pounds / 2.2046d;
    }
}

Related Tutorials