title: How do I determine if a negative float is between two other negative numbers in Ruby
body: <p>Why is it that if I do </p>
  
  <pre><code>-102.between?(-100,-105)
  </code></pre>
  
  <p>in Ruby, it returns false?</p>
  
  <p>-102 is indeed between -100 and -105, correct?</p>
  
  <p>I'm trying to do this with a longitude coordinate (which in my hemisphere will be negative) so for example if:</p>
  
  <pre><code>ilong = -102.560
  if ilong.between?(-100.000,-105.000) then utmzone = 10 end
  puts utmzone
  </code></pre>
  
  <p>should return 10.</p>
  
  <p>How do I accomplish this?</p>
  
  <p>-Jim</p>