POLL: Should FP Calculations Round to the Nearest?
from
GalCiv2 Forums
POLL: Currently all floating point calculations round down which causes many bonuses to disappear (e.g., a ship with attack 8 and attack bonus 10% stays attack 8 because 8.8 rounds down to 8)! Should floating point calculations round down or round off to the nearest?
p.s. To round off to the nearest the devs. would just need to add 0.5 before typecasting to integer.
p.s. To round off to the nearest the devs. would just need to add 0.5 before typecasting to integer.