Here you can find the source of roundOffAmt(double dAmt)
public static double roundOffAmt(double dAmt)
//package com.java2s; public class Main { public static double roundOffAmt(double dAmt) { return Math.round(dAmt * 10000000000.0) / 10000000000.0; }/*ww w. j a v a 2 s .c om*/ }