News for hackers. Stuff that matters.
Re:Aztec monks with 1/55 HP no longer die when picking up or... by ilyt on Saturday April 15, 2023 @06:26AM (#35579272)
> Not sure in what case it makes sense to have dying at smaller than 1. To the user all the numbers are integers, so why not use rationals instead of floats?

If killing unit takes X attacks, user buys 10% attack damage upgrade, and it still takes X attacks they will be annoyed. If rounding down takes that to x-1 attacks it might be preferable.

That being said you're absolutely right. just use HP*100 in calculations and display HP/100 to the user, and when you need to round into specific direction do it explicitly

There are no comments on this comment yet.