title: Why does floor() round up in dart?
body: <pre><code>-3.6.floorToDouble()
  </code></pre>
  <p>I'd expect this to return -4, because floor() rounds towards negative infinty, but it actually returns -3. It basically acts like truncate(). Is this a bug in the dart sdk or implemented on purpose?</p>