Here you can find the source of roundDouble(double d)
public static double roundDouble(double d)
//package com.java2s; //License from project: LGPL public class Main { public static double roundDouble(double d) { return (double) (int) d; }//from w w w .j a v a 2 s . c om }