Why is the equation for Fluctuating Growth Rate from Bulbapedia Not working?

1 minute read

Yes, I know it changes depending on level, I already dealt with that. The problem is that on some levels, like 39, I don’t get the right amount of total EXP. My equation is level^3*(((level/2) + 32)/50). Some numbers I do, but some I don’t, they are usually a few thousand off. If any one can help, it’d be appreciated.Also, I don’t know if this is 100% true, but I have noticed that even numbers work in the equation but odd numbers do not. Again, I have not tested this on all the numbers of course, but I tried it a few times.

*Correction - The level+1^3 part is actually in parentheses, I just wrote it wrong. The problem still persists.

Pleaselog inorregisterto add a comment.

Pleaselog inorregisterto add a comment.

The problem exists in the part where the level is divided by 2.

All even numbers, when divided by two produce a whole number, whereas odd numbers produce non-integer values. As sumwun said, the way Pokemon executes math is that non-integer values are constantly roundeddownto produce a whole number.

Assumeniseven. Knowing this, dividingnby two will always result in awhole numbern/2. Thus, whennis increased by one, it will become odd. Divide by two:(n+1)/2= n/2 + 0.50.5 is not whole, so round down= n/2 + 0= n/2Thereforen/2 = (n+1)/2

Thus, whennisodd, the formula actually becomes n^3*((((n-1)/2) + 32)/50). You can justify by lettingn = 39:

Thank you sumwun for pointing that out since I would have never realised.

Hope I helped. :)Source