Originally Posted by Seerah
To explain why it doesn't work now, but seems like it did before, the client used to fail silently when trying to divide by 0. It still happened, though.
|
Actually, it didn't fail at all, not even silently. Lua has always been able to convert divide-by-zero into a value that represents infinity. Any other operation that would result in an undefined value including 0/0 would result of a value representing NaN (Not-a-Number). The floating-point specification used is known as
IEEE 754-1985. Starting with MoP beta, Blizzard changed this behavior to start throwing errors instead.