Here you can find the source of roundTo100th(double w)
private static double roundTo100th(double w)
//package com.java2s; public class Main { private static double roundTo100th(double w) { return Math.floor(w * 100 + 0.5) / 100; }//from w ww .j a v a2 s.co m }