docs: public static void validateTotalDigits(int totalDigits, double value){
          String doubleValue = String.valueOf(value);
  
          int numberOfDigits;
  
          if (value != ((int) value)){
              numberOfDigits = doubleValue.length() - 1;
          } else {
              numberOfDigits = doubleValue.length();
          }
  
          if (numberOfDigits != totalDigits){
              throw new RestrictionViolationException("Violation of fractionDigits restriction, value should have a exactly " + totalDigits + " decimal places.");
          }
      }