Here you can find the source of round(double dValue)
public static double round(double dValue)
//package com.java2s; // it under the terms of the GNU General Public License as published by public class Main { private static double m_dFractionMultiplier; public static double round(double dValue) { return Math.rint(dValue * m_dFractionMultiplier) / m_dFractionMultiplier; }/*from www. j av a 2 s . c o m*/ }