Hidden Power (move)/Calculation: Difference between revisions

Line 143: Line 143:


Hidden Power's type of a Pokémon with given IVs is represented by a number, calculated with this formula:
Hidden Power's type of a Pokémon with given IVs is represented by a number, calculated with this formula:
<math display="block">HP_{type} = \bigg\lfloor \frac{(a + 2b + 4c + 8d + 16e + 32f) \times 15}{63}\bigg\rfloor</math>
<math display="block">HP_{type} = \bigg\lfloor \frac{(a + 2b + 4c + 8d + 16e + 32f) \times 5}{21}\bigg\rfloor</math>


where ''a'', ''b'', ''c'', ''d'', ''e'', ''f'' (the "type bits") are the {{wp|least significant bit}} of their respective IVs. If a number is odd, its least significant bit is 1; otherwise (if the number is even), it is 0.
where ''a'', ''b'', ''c'', ''d'', ''e'', ''f'' (the "type bits") are the {{wp|least significant bit}} of their respective IVs. If a number is odd, its least significant bit is 1; otherwise (if the number is even), it is 0.
204

edits