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.

Perspectives on Floating Point

54 pointsby vimarsh67397 months ago

5 comments

yxhuvud7 months ago
One thing I think would be nice for floating point numbers, is that I'd prefer if there were two separate types - one where NaN and the two infinites are allowed, and one where they are not allowed but instead emit an error. The former would be used by some few mathematicians etc, and the rest of us could use the latter. The upside would be better error handling close to the source of the issue, and better optimizations as the not-normal values throw a wrench into optimizing math.
评论 #41880516 未加载
评论 #41880462 未加载
评论 #41881059 未加载
评论 #41880435 未加载
评论 #41882705 未加载
评论 #41881513 未加载
andrepd7 months ago
Posits <a href="https:&#x2F;&#x2F;posithub.org&#x2F;docs&#x2F;Posits4.pdf" rel="nofollow">https:&#x2F;&#x2F;posithub.org&#x2F;docs&#x2F;Posits4.pdf</a> are an excellent perspective for an alternative to IEEE floats.
kolbusa7 months ago
Not sure why the article does not reference the following paper which is a must read for anyone working with floating point: <a href="https:&#x2F;&#x2F;docs.oracle.com&#x2F;cd&#x2F;E19957-01&#x2F;806-3568&#x2F;ncg_goldberg.html" rel="nofollow">https:&#x2F;&#x2F;docs.oracle.com&#x2F;cd&#x2F;E19957-01&#x2F;806-3568&#x2F;ncg_goldberg.h...</a> (original: <a href="https:&#x2F;&#x2F;www.itu.dk&#x2F;~sestoft&#x2F;bachelor&#x2F;IEEE754_article.pdf" rel="nofollow">https:&#x2F;&#x2F;www.itu.dk&#x2F;~sestoft&#x2F;bachelor&#x2F;IEEE754_article.pdf</a>).
评论 #41881888 未加载
cosignal7 months ago
Very nice graphics in this.
rhythane7 months ago
A really interesting review. The idea of relative error makes sense in most cases, but when we need to do subtraction and difference matters, maybe absolute error is actually better.
评论 #41880415 未加载
评论 #41882629 未加载