<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div><blockquote type="cite"><span class="Apple-style-span" style="color: rgb(0, 0, 0); ">[1] The Haskell 98 Report: Predefined Types and Classes</span></blockquote><blockquote type="cite"> &nbsp;&nbsp;<a href="http://haskell.org/onlinereport/basic.html">http://haskell.org/onlinereport/basic.html</a><br></blockquote><br>This behaviour is not what I expect after reading the description at<br><a href="http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v">http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v</a>:round<br>. &nbsp;Given that this behaviour has caused a bit of confusion I think a<br>change to the documention might be in order.</div></blockquote><br></div><div>Given that the documentation says "<span class="Apple-style-span" style="font-family: '-webkit-sans-serif'; "><tt style="font-size: 11px; "><tt style="font-size: 11px; "><a href="http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v%3Around" style="color: rgb(0, 0, 160); text-decoration: none; ">round</a></tt>&nbsp;x</tt>&nbsp;returns the nearest integer to&nbsp;<tt style="font-size: 11px; ">x", I think pretty much any behavior can be expected -- there's no single integer nearest to 2.5. &nbsp;The documentation certainly needs updated though.</tt></span></div><div><font class="Apple-style-span" face="-webkit-monospace" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" face="-webkit-monospace" size="3"><span class="Apple-style-span" style="font-size: 11px;">Bob</span></font></div></body></html>