Here you can find the source of round(double value)
public static double round(double value)
//package com.java2s; public class Main { public static double round(double value) { return ((int) (value * 10) / 10.0); }/*from w w w. j ava 2 s .co m*/ }