TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Why does Excel get 213,458,046,676,875 x 29 wrong?

2 点作者 christudor大约 3 年前
When I put =PRODUCT(213458046676875,29) into Excel, it gives me the answer 6,190,283,353,629,370.<p>The actual answer is 6,190,283,353,629,375.<p>What has happened?

2 条评论

lavezza大约 3 年前
Excel only stores 15 significant digits. Once you get to the 16th digit you&#x27;ll just get a zero.<p>Example: 6,190,283,353,629,370 + 1 will still be 6,190,283,353,629,370. 6,190,283,353,629,370 + 10 will be 6,190,283,353,629,380
db48x大约 3 年前
Floating–point numbers happened. Excel uses IEEE–754 floating–point arithmetic because it is fast and ubiquitous. One of the disadvantages of doing math this way is that as you get farther away from zero, the precision of the numbers goes down. It’s generally fine because most people don’t do arithmetic on 6 quadrillion and change, they do arithmetic on smaller, more approachable numbers.<p>Look for a way to solve your problem using software that uses unlimited–precision arithmetic instead.