Here you can find the source of getStrFormatTwoPoint(float param)
public static String getStrFormatTwoPoint(float param)
//package com.java2s; public class Main { public static String getStrFormatTwoPoint(float param) { param += 0.001;/*from w w w . j av a 2 s . c o m*/ java.text.DecimalFormat df = new java.text.DecimalFormat("#0.00"); return df.format(param); } }