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.

Google Calc floating point error: 16384.69-16384.58=0.10999999999

1 pointsby nathanwallaceabout 9 years ago

1 comment

nathanwallaceabout 9 years ago
The Google Calculator returns incorrect results for the range:<p><pre><code> 16384.69 - 16384.58 (0.10999999999) 16385.69 - 16385.58 (0.10999999999) ... 32766.69 - 32766.58 (0.10999999999) 32767.69 - 32767.58 (0.10999999999) </code></pre> Results are correct on either side of this range:<p><pre><code> 16383.69 - 16383.58 (0.11) 32768.69 - 32768.58 (0.11)</code></pre>
评论 #11289404 未加载