Java tutorial
//package com.java2s; import java.util.Locale; public class Main { public static float roundFloatTwoHouse(float value) { return Float.parseFloat(String.format(Locale.US, "%.2f", value)); } }