Java tutorial
//package com.java2s; //License from project: Apache License public class Main { public static String decimalFormat(float value) { java.text.DecimalFormat df = new java.text.DecimalFormat("0.00"); return df.format(value); } }