Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ilius2
· 1y ago · 0 comments
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.
Comments
[–]
sidpatil
1y ago
What if a is negative?
[–]
ilius2
OP
1y ago
Same. Unless you want to differentiate -0 and +0 (which make it more complicated), you can not distinguish infinity from negative infinity.
[–]
jsnedjdn
1y ago
IEEE floating point representation does both
[–]
HappMacDonald
1y ago
John Conway can