convert kilogram To gram - Android java.lang

Android examples for java.lang:Math Convert

Description

convert kilogram To gram

Demo Code


//package com.java2s;

public class Main {
    public static float convertkgTogm(float kg, float gm, float price) {
        return (float) ((gm * price) / (kg * 1000));
    }/*from  w  ww.  j av a2  s  . c o m*/
}

Related Tutorials