Here you can find the source of roundUp(double d)
private static long roundUp(double d)
//package com.java2s; //License from project: Creative Commons License public class Main { private static long roundUp(double d) { return Math.round(d * 10.0) / 10; }/*from ww w . ja v a 2 s. c o m*/ }