feinwarusoftware / sppd

🃏 A website made to view in-game stats for the mobile game "South Park Phone Destroyer"
https://sppd.feinwaru.com/
11 stars 7 forks source link

Rounding the numbers for powers #129

Open MaskedRoninTTV opened 4 years ago

MaskedRoninTTV commented 4 years ago

Some numbers for powers aren't rounded as they should be. For instance Incan Craig U40 should deal 114 to leader because it's 113.8 by calculations. Another example is Lightning Bolt level 4, should do 57 to leader.

RedLynx rounds down numbers that end with 5 but the rest is still rounded up. So 9.6-10.5 would all be rounded to 10 while 10.6 is rounded up to 11.

Dragon1320 commented 4 years ago

We do all our rounding in the converter tool iirc so ill tag this as api but if we do rounding somewhere else as well, please add the relevant tags (whoevers working on this).

amDavid01 commented 4 years ago

need to recheck if it works