TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why round to even integers? – Mathematica Stack Exchange

7 pointsby matthbergover 8 years ago

2 comments

tagrunover 8 years ago
I don&#x27;t remember Mathematica was ever like this, although I didn&#x27;t use Round[] much either. It does what I would expect it to do today:<p><a href="http:&#x2F;&#x2F;reference.wolfram.com&#x2F;language&#x2F;ref&#x2F;Round.html" rel="nofollow">http:&#x2F;&#x2F;reference.wolfram.com&#x2F;language&#x2F;ref&#x2F;Round.html</a><p><pre><code> Round[x] gives the integer closest to x.</code></pre>
评论 #13348714 未加载
yellowappleover 8 years ago
I&#x27;m surprised none of the answers seem to emphasize IEEE 754, which recommends ties-to-even rounding as the default (but allows ties-away-from-zero, which is what&#x27;s more familiar to me and probably the person who asked the question in the first place).