.00000000000001 Gold Glitch

Anyone remember the old gold glitch about a year ago? When the game switched from a gold cost per battle to free last January, there was an extremely weird gold glitch that made basically every single gold value into a decimal. It only lasted for several hours, but was still very funny and annoying. :stuck_out_tongue:

Well…

The gold value after taking that daily bonus is still a whole number, but the daily bonus visually has that glitch.

3 Likes

That’s probably a consequence of using Javascript on the back end. All numeric variables in JS are floating point, and it doesn’t have a particularly good floating point implementation. There’s ways to deal with it and hide it, but stuff like this is bound to pop up if you’re not really careful.