protected double round1(double d){
  return Math.round(d * 10d) / 10d;
}

protected double round1 ( double d ) { return Math . round ( d * 10d ) / 10d ; }
round off a double precision number to 1 digit after the decimal .
