Java tutorial
//package com.java2s; public class Main { public static double round(float num) { return Math.round(num * 100.0) / 100.0; } }