Here you can find the source of round(double d)
public static double round(double d)
//package com.java2s; //License from project: Open Source License public class Main { public static double round(double d) { return Math.round(d * 100D) / 100D; }/*from ww w .j av a 2 s . co m*/ }