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

Hmmm, You want it more technical, ehh?

Here is some java code which illustrates the problem.

public class ProgressBar

{

public static void main( String args[] )  {

long level64 = 2272178900L;

long level65 = 2482733900L;

long xp = 2345502609L; // Your present number of XP.

// Assume the bar is drawn from 0 pixels over to 100 pixels.

// So each pixel would represent 1% of completion.

int numer = (int) (100*xp-100*level64);

int denom = (int) (level65-level64);

float pixel =  0 + numer/denom;

float truePixel = 0 + (100*xp-100*level64)/ (level65-level64);

System.out.println("The numerator is: "+ 100*numer);

System.out.println("The denominator is: "+ denom);

System.out.println("Your bar should show this percentage completed: "+ truePixel);

System.out.println("But overflow causes this negative value: "+ pixel);

} // end main

} // end class