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