Java tutorial
//package com.java2s; import android.util.Log; import java.text.DecimalFormat; public class Main { public static String lbToKg(float paramFloat) { float f = (float) (0.45359D * paramFloat); DecimalFormat localDecimalFormat = new DecimalFormat("######.00"); Log.v("tag", "string2:" + localDecimalFormat.format(f)); return localDecimalFormat.format(f); } }