code: public static double trim(double value) {
      if (value > MAX_DOUBLE_TO_ROUND || value < -MAX_DOUBLE_TO_ROUND) {
        return value;
      }
      return Math.round(value * ROUND_PRECISION) / ROUND_PRECISION;
    }
docs: Trims a double value to have only 7 digits after period.
  
  @param value to be trimed
  @return trimmed value