In my code, I have an enemy object who has a current_hp and max_hp. Both are of type BigInt. I am looking to convert that into a percentage but in range(0, 100). How can I do it effectively?
BigInt division rounds to integer, so I can't use fractions and do hp/max_hp.