Java tutorial
//package com.java2s; import java.math.BigDecimal; public class Main { public static float kgToLB_F(float paramFloat) { return new BigDecimal(2.0F * ((1.0F + 11023.0F * (10.0F * (paramFloat * 10.0F)) / 50000.0F) / 2.0F) / 10.0F) .setScale(1, 4).floatValue(); } }