So, the game displays HP as whole numbers 0-10, with a unit displayed as 0 HP counting as destroyed. However, the damage is displayed as a percentage, a decimal with two significant figures. Does anyone know how the game reconciles the two?

For example, if a 10 HP unit takes damage shown as 75%, how does it choose to display the remaining HP? If the unit has 25% health remaining, does it round up and display 3 HP, or round down to 2 HP? (Experience says it will usually display 2 HP, but I understand there is some randomness in the actual damage done- more on that later).

Most importantly though, does the game still track the actual percentage behind the scenes? When the unit is displayed as 2 or 3 HP, is it set to exactly that (i.e. 2.0 and/or 3.0) or is it still tracked internally as 2.5 HP?

As for rounding, I think it would make more sense to always round up, otherwise a unit only effectively has 9.5 HP (anything below 0.5 would get rounded down to 0) but personal experience seems to show more rounding down than anything (the 75% attack dealing 8 HP of damage). I understand there's a random damage factor that could do more damage depending on the RNG, different sources place that either during the calculation or adding straight to the final damage. So, the random chance of doing more damage increases the chances of pushing the 75% attack over the actual 80% mark and reducing the defender to 2 HP, while still allowing for 75-79- is this what happens when it displays 3 HP? Would it have to hit 75% exactly (2.5 HP remaining) to display 3?

Assuming the damage formula in the wiki is correct (http://awbw.wikia.com/wiki/Damage_Formula) the the HP of the attacker and defender are figured into the equation. Does that formula use the displayed HP or the actual HP (assuming the game actually does track it by at least one decimal point).

All of this is a roundabout way of asking: all that stands between me and an S Rank of AC Final Battle is a 13% attack on a 2 HP APC. I've been resetting for a while and the attack never destroys the APC- and I've definitely seen 13% deal 2 HP of damage before, which makes sense with the random additions. If the APC is a "high" 2, though, like 2.4, maybe that changes the calcs enough so it never will destroy it? Does anyone know if this is the way HP is actually tracked though?

TL;DR: someone hack the game for me please.