GamePress

I'm doing an app .. nothing complex really but for listing pokemon you have and organizing for gym battles or so..

Question: Given the values "Attack 0-15, Defense 0-15 and Stamina 0-15". Is there a formula to calculate the %? I know 100% = 15 15 15 = 45. But I don't find any correlation with those numbers. Otherwise I have to make a LIST of 100% = 45. 97.8% = 44 (just going through that list)

thx

currently implemented as follows

Asked by fragsman8 years 1 month ago
Report

Answers

by Simon 8 years 1 month ago

You add up the three IV values (Attack IV, Defense IV, Stamina IV) and divide the total by 45; then convert the resulting fraction into a percentage.

Up
0
Down

by pipjay 8 years 1 month ago

( AtkIV + DefIV + StmIV ) / 45 * 100

Total / Maximum * 100

Up
0
Down

I think your making it a little more complicated than necessary

Up
0
Down