Y
Hacker News
new
|
ask
|
show
|
jobs
by
ilius2
559 days ago
If you were to define a/0 the most logical choice would be a new special value "Infinity". The second best choice would be the maximum supported value of the type of a (int, int64 etc). Anything else would be stupid.
1 comments
sidpatil
559 days ago
What if a is negative?
link
ilius2
559 days ago
Same. Unless you want to differentiate -0 and +0 (which make it more complicated), you can not distinguish infinity from negative infinity.
link
jsnedjdn
559 days ago
IEEE floating point representation does both
link
HappMacDonald
559 days ago
John Conway can
link