User blog comment:Howsurbut/Progress Bar Bug/@comment-5116140-20121210202438/@comment-5116140-20121210210649

When you run that code, here is the output.

The "negative percentage" due to overflow causes the progress bar to be drawn completely filled.

The numerator is: -1202317616  <-- The OVERFLOW!!

The denominator is: 210555000

Your bar should show this percentage completed: 34.0

But overflow causes this negative value: -5.0