>x/0 == Infinity
Oh right i forgot, thank you Javascript!
X/0 == Infinity
Infinity is part of the IEEE-754 spec, C-nile boomer
But that's true you amerilard
read a book you stupid nigger
You can't divide by 0 you stupid shits, it's "undefined"
>amerilards are unaware of the first week of calculus
Nice bait I almost replied
When you take limits you replace the n with the infinity. Are you seriously thinking a programming language should be that pedantic about notation when all you want is the result? It's obvious what's happening in js when it says x/0 == infinity
It's not obvious at all, and it's completely wrong.
I would get it if an endless sum of numbers could be optimised away to return INFINITY but that's it.
>When you take limits you replace the n with infinity
You have no idea how to compute a limit, you retard. That is 100% untrue. A simple counter would be that the limit of 1/n as n -> -inf also equals 0. How could 2 "numbers" give you the same result? The reason is because infinities are not numbers, and limits are not a method of solving arithmetic.
x/0 equalling anything is logically useless in nearly any circumstance which is why it is traditionally undefined. In the rare cases where it needs to be defined it can be, but this should never be the case for a general-purpose programming language.