HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by stabbles | Hacker News Reader
Parent
Full thread
stabbles
·
Yeah, should be scaled like |x - y| <= ε * max(|x|, |y|)
View on HN
aartaka
·
Will do.
jffhn
·
If both terms are infinites and of same sign, subtraction will give NaN and it will fail.
listeria
·
How is that a problem? infinities shouldn't be considered equal
jffhn
·
For IEEE 754, and in Java for example, they are. Only NaN is not equal to itself (and different from itself).
Reply on news.ycombinator.com