title: How to get the next floating point value (upwards or downwards)?
body: <p>Suppose we have a situation like this: we have an upper bound (which is a <code>float</code>), as well as a flag "strict" (<code>boolean</code>). We want to scan through a list of values (floats) and do something to each value which satisfies the bound.</p>
  
  <p>The check would look something like this:</p>
  
  <pre><code>value -&gt; strict ? (value &lt; bound) : (value &lt;= bound)
  </code></pre>
  
  <p>It's not the end of the world, but <code>bound</code> and <code>strict</code> are defined far away from this check, and for code locality reasons it would be nice not to send <code>strict</code> all the way through the process.</p>
  
  <p>It would be convenient, if it's possible, to just move bound "up to the next value" so that instead of checking <code>value &lt;= bound</code> we could just check <code>value &lt; boundPlusALittleBit</code>.</p>
  
  <p>If we use <code>ints</code> instead of <code>floats</code>, this is easy (<code>boundPlusALittleBit = bound + 1</code>) but it's not straightforward to do this with floats. Is there a library function which achieves this?</p>