Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
_Sycamore
· 1y ago · 0 comments
My head-canon with dividing by zero is that 1/0 = undefined and 1/-0 = -undefined, and that's where I leave it because anything less funny than that seems like an impractical answer.
Comments
[–]
jansan
1y ago
I am fine if isFinite(1/0) returns false.
[–]
maxk42
1y ago
0 / 0 = Any number
non-zero / 0 = No number
[–]
hgomersall
1y ago
0/0 might be a specific number. You have to go and use l'hopitals rule to work out what it might be.