convert gram To kilogram - Android java.lang

Android examples for java.lang:Math Convert

Description

convert gram To kilogram

Demo Code


//package com.java2s;

public class Main {
    public static float convertgmTokg(float gm, float kg, float price) {
        return (float) ((kg * 1000 * price) / gm);
    }/*from  w  w w.  j  a  va  2  s.  c  o m*/
}

Related Tutorials