protected double round2(double d){
  return Math.round(d * 100d) / 100d;
}

protected double round2 ( double d ) { return Math . round ( d * 100d ) / 100d ; }
round off a double precision number to 2 digits after the decimal .
