Java examples for java.lang:Math Convert
calculate Pounds from Kilogram
//package com.java2s; public class Main { public static void main(String[] argv) throws Exception { double kg = 2.45678; System.out.println(calculatePounds(kg)); }// w w w . j a v a 2s. c om public final static float calculatePounds(double kg) { return (float) (kg * 2.2); } }