title: Check if a value exists between two numbers (float ) c#
body: <p>I see Enumerable.Range(int x, int y).contains() is used to check if a value exists between two given values. But this works only for integers.</p>
  
  <p>How to check for float values - all x, y and result are float values.</p>