title: How do I specify the rounding mode for floating point numbers?
body: <p>I'd like to round floating point numbers to the nearest integer, going towards positive infinity when there is a tie for "nearest integer".</p>
  
  <pre><code>use std::num::Float;
  
  fn main() {
      assert_eq!(-0.0, (-0.5).round()); // fails!
  }
  </code></pre>
  
  <p>However, the docs for <code>round</code> say:</p>
  
  <blockquote>
    <p>Round half-way cases away from 0.0.</p>
  </blockquote>
  
  <p>I haven't seen anything that would allow me to change the rounding mode, but there's got to be some way, right?</p>