Java tutorial
//package com.java2s; import java.text.DecimalFormat; public class Main { public static String countBMI(float paramFloat1, float paramFloat2) { float f = paramFloat1 / (paramFloat2 * paramFloat2); return new DecimalFormat("######.0").format(f); } }