title: Validate input is within a numeric range, possibly a float, using express-validator
body: <p>I'm trying to validate if the input is an integer or a float within a certain range using <a href="https://express-validator.github.io/docs/" rel="noreferrer">express-validator</a>. I've tried:</p>
  <pre><code>check(
        'rating',
        'Rating must be a number between 0 and 5'
  ).isNumeric({ min: 0, max: 5 }),
  </code></pre>
  <p>but the <code>min</code> and <code>max</code> values don't actually work. I tried putting in numbers above <code>5</code> and they don't throw an error.</p>
  <p>The code below works, it won't allow numbers outside of the <code>min</code> and <code>max</code> limits:</p>
  <pre><code>check(
        'rating',
        'Rating must be a number between 0 and 5'
  ).isInt({ min: 0, max: 5 })
  </code></pre>
  <p>but only for integer numbers, not for decimals, and the input needs to be either a decimal or an integer number between <code>0</code> and <code>5</code>.</p>
  <p>Is there a way to do this?</p>