title: How to use @Digits validation on integer value
body: <p>I want to validate if incoming number is integer value (wihout fraction), between 0 and 100.</p>
  <p>I have dto with javax.validation annotations:</p>
  <pre><code>@Min(value = 1, message = &quot;some msg&quot;)
  @Max(value = 100, message = &quot;some msg&quot;)
  @Digits(integer = 3, fraction = 0, message = &quot;some msg&quot;)
  private int someField;
  </code></pre>
  <p>Dto is used in @RestController class as input method (@PostMapping) argument.</p>
  <p>@Min and @Max works fine, but @Digits doesn't. When I send number, for instance 95.5, it is converted to 95 and any exception is thrown. Why it is not checked by @Digits?</p>