mask = Math.pow(10.0,(double)afterDecimalPoint);  return (double)(Math.round(value*mask))/mask;
return (double)(Math.round(value * mask)) / mask;
  public static double roundDouble(double value,int afterDecimalPoint){    double mask;    mask = Math.pow(10.0,(double)afterDecimalPoint);    return (double)(Math.round(value*mask))/mask;  }