Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ilius2
on Dec 1, 2024
|
parent
|
context
|
favorite
| on:
1/0 = 0 (2018)
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.
sidpatil
on Dec 2, 2024
[–]
What if a is negative?
ilius2
on Dec 2, 2024
|
parent
[–]
Same. Unless you want to differentiate -0 and +0 (which make it more complicated), you can not distinguish infinity from negative infinity.
jsnedjdn
on Dec 2, 2024
|
root
|
parent
|
next
[–]
IEEE floating point representation does both
HappMacDonald
on Dec 2, 2024
|
root
|
parent
|
prev
[–]
John Conway can
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: