TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Grandmother denied $41.8m casino jackpot payout [due to software glitch]

6 pointsby GotAnyMegadethabout 10 years ago

1 comment

nasalgoatabout 10 years ago
I&#x27;m not so sure why people are upset or surprised by this - it&#x27;s been standard operating procedure for a long time that malfunctions void all pays.<p>As for why, a comment from Ars:<p>&quot;Created an account just to post this. Having formerly programmed casino games I&#x27;ve seen this bug many times before:<p><pre><code> To me this doesn&#x27;t look like some &quot;glitch&quot; in the machine but rather an oversight by Aristocrat&#x27;s programmers. Most casino games have a bonus round obtained from the right combination of symbols. So at the end of the bonus round the player will receive a &quot;Regular Win&quot; and a &quot;Bonus Win&quot;. Sometimes the regular win is subtracted or not counted in the bonus win, sometimes it is counted. Can&#x27;t remember what Miss Kitty&#x27;s rules are exactly but let&#x27;s say that in this case the regular win is subtracted from the Bonus win. So the programmer will subtract =&gt; bonusWin - regularWIn = totalWin Ok, now lets assume that granny had a really terrible bonus round, like she only won $5 when she had a regular win of $10. Ok, so the grand total will be $5.00 - $10.00 = -$5.00. But why didn&#x27;t the &quot;Total Win&quot; display a negative number? Well, it&#x27;s simply because many casino game developers use Unsigned 32 bit integers in win amounts. Basically unsigned integers cannot have negative numbers. So when you subtract one larger unsigned integer from a smaller one instead of resulting in a negative number the result will wrap around to its largest possible value. In the case of unsigned Integers that&#x27;s =&gt; 4,294,967,295 with two decimal places added it for the cent amounts it comes to $42,949,672.94! That still doesn&#x27;t explain exactly why the win was a bit below $42 million. My guess is that its smaller because of the programming language used and the processor word size. Max integer size varies from language to language but it for an unsigned 32bit integer its usually around that value.&quot;</code></pre>