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