By how numbers are divided by themselves, 1/1 = 1, 2/2 = 1, 3/3 = 1, doesn't that mean 0/0 = 1?
Just a thinker.
0/0 can equal ethier 1, 0, or infinity all at the same time depending on what basis prove it on. Though because of all these solutions, we just put it as undefined or NaN (Not a Number)...
Here are the different proofs to the 0/0 statement:
For 0/0 equals 1:
Any number divided by itself equals 1 [n/n = 1] --> 0/0 = 1
For 0/0 equals 0:
Zero divided by any number equals zero [0/n = 0] --> 0/0 = 0
For 0/0 equals infinity:
Any number divided by 0 equals plus or minus infinity [n/0 = ±∞] --> 0/0 = ∞
Lua returns NaN, which is smart because it could cause a lot of mathematical problems, with different solutions in different situations, as stated above.
Fun fact. NaN is not equal to its self, so NaN==NaN returns false!