title: Kotlin test if float is in open or semi open range
body: <p>In Kotlin - is there an idiomatic way to test if a float is in a range where either (or both) the start or the end of the range is exclusive?</p>
  
  <p>E.g something like</p>
  
  <pre><code>val inRange = 10.f in (0.0f until 20f)
  </code></pre>
  
  <p>I can't seem to find anything on this in the docs. </p>
  
  <p>Update: 
  How would one deal with semi-open ranges as well?</p>