title: How to check if a float value is within a certain range and has a given number of decimal digits?
body: <p>How to check if a float value is within a range (0.50,150.00) and has 2 decimal digits?</p>
  
  <p>For example, 15.22366 should be false (too many decimal digits). But 15.22 should be true.</p>
  
  <p>I tried something like:</p>
  
  <pre><code>data= input()
  if data in range(0.50,150.00):
     return True
  </code></pre>