Hacker News new | ask | show | jobs
by sidpatil 559 days ago
What if a is negative?
1 comments

Same. Unless you want to differentiate -0 and +0 (which make it more complicated), you can not distinguish infinity from negative infinity.
IEEE floating point representation does both
John Conway can