What am I missing? (stat calculation)

Grinnz

New Member
Joined
Apr 18, 2010
Messages
5
Reaction score
0
In pokemon Pearl I currently have a level 6 Cricketot with a Lax nature and a defense of 9. According to my calculations, even with an IV of 0, the minimum defense it could have is 10, nearly 11.

Stat = 1.1 * ((0 + 2*41 + 0) * 6 / 100 + 5)) = 10.91

The only explanation I can come up with is that either I'm missing something, the formula is wrong, or the Lax nature does not increase defense. Without the multiplication by 1.1, the resulting minimum is 9.92. (currently has no defense EVs) But I've looked on other sites and they also say Lax nature increases Defense.

Any ideas?
 
Wrong Thread, this belongs in competitive battleig forum I think. correct me if Im wrong
 
I'm not talking about anything competitive, just want to make sure the info given in the wiki is right...
 
I'm wondering whether the game does the rounding down before it takes nature into account, in which case the stat boost won't kick in until the stat reaches 10.
i.e. does it calculate the stat, and then add the nature on, or is the nature part of the original calculation?
If it does then 0 + 41*2 + 0 = 82
82*0.06 = 4.92
4.92 + 5 = 9.92
Rounding down gives 9
9*1.1 = 9.9
Rounding down gives 9

These kinds of errors are so common that they even have a name: rounding errors.:banghead:
 
the resulting minimum is 9.92

Pokemon always rounds down due to the use of floor functions for every major game formula, so 9.92 is 9.


EDIT: Didn't see the post above, heh. But yeah, that's it.

It's better to check IVs via the use of IV battles, or simply using higher leveled Pokemon.
 
That extra rounding makes sense, I'll incorporate it and see what happens. TTE, yeah I know there's IV calculators but I'm keeping track of a lot of data, it's nice to be able to integrate the formulas into my system (currently just a spreadsheet but I'm working on something more convenient...)
 
I think that 1.1 is wrong, that instead it's +10% every time (meqning at lv. 6, the extra stat might not have come into effect yet). And it does round down.
 
Multiplying by 1.1 is the same as adding 10%. 1.1 is 110%.

But yes, at level 6, it's not often that you'll see the boost that Nature gives, since the stat difference at that level is so small.
 
Well I think the idea of 110% is that it adds to the stat every 10 level-ups, so at level 6, it hasn't reached a level where it's taken effect yet. Sorry if I'm wrong.
 
No, the 110% has nothing at all to do with the level. It means that when that stat is calculated it then multiplies it by 1.1 so going from level (say) 67 to 68 the boost gould give an extra couple of 'points' to the stat

As far as I am aware the game doesn't actually store the stats, but calculates them from the IVs, EVs, level and nature each time they are used.
 
I'm wondering whether the game does the rounding down before it takes nature into account, in which case the stat boost won't kick in until the stat reaches 10.
i.e. does it calculate the stat, and then add the nature on, or is the nature part of the original calculation?
If it does then 0 + 41*2 + 0 = 82
82*0.06 = 4.92
4.92 + 5 = 9.92
Rounding down gives 9
9*1.1 = 9.9
Rounding down gives 9

These kinds of errors are so common that they even have a name: rounding errors.:banghead:
If the cart was rounding to the closest whole number as you insinuate, 9.92 would be "10". It is not, it is simply truncating. "Rounding" is reserved for a system of number estimation, truncation is simply ignoring everything after a given point.

The More You Know
 
Rounding down and truncation are two methods to the same result.
 
Please note: The thread is from 16 years ago.
Please take the age of this thread into consideration in writing your reply. Depending on what exactly you wanted to say, you may want to consider if it would be better to post a new thread instead.
Back
Top Bottom