View Single Post
08-03-12, 02:22 PM   #8
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Originally Posted by Seerah View Post
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.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 08-03-12 at 02:33 PM.