Here you can find the source of round2Places(Double input)
public static Double round2Places(Double input)
//package com.java2s; //License from project: LGPL public class Main { public static Double round2Places(Double input) { return Math.round(input * 100.0) / 100.0; }//ww w .j ava 2s. c o m }