Custom Damage Formula Help!

The problem is that once I end up with a really small decimal and it makes a mess of the actors hp bar. I have tried adding .to_f but with no luck. Any help would be appreciated.

Code:
 def custom_formula_dmg(a,       if b.state?(46);a.hp+=6 + (0.05 * $game_actors[13].mhp);end;a.add_state(27);if b.result.critical;a.tp+=5; end; a.atkend
try adding .to_i (for integer) if you want to remove the decimals, a change to float will only enable the decimal values...


If that doesn't help, please give a more detailed description of the problem.
 found it thanks for the help
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/custom-damage-formula-help.18979/