Here you can find the source of roundUpToTwo(Double number)
public static Double roundUpToTwo(Double number)
//package com.java2s; //License from project: Apache License public class Main { public static Double roundUpToTwo(Double number) { return Math.floor(number * 100) / 100.00; }/* ww w . j a v a 2 s. co m*/ }