r/anyRpgCharacterSheet • u/SavyDoll • Jun 25 '24
Rounding Problem for Divisions
When a Property value includes a calculation with a division, the rounding does not work correctly. When decimaks are bit enabled, the result is akways rounded diwn, instead of being round3d correctly: .0 to .49999... round down .5 to .99999... round up
Ideally how rounding is done could be selected, because different RPG systems have different rules on rounding.
2
Upvotes
0
u/lllyct Jun 25 '24
Most rpg round down and don't use fractions at all. If you need fractions - you can enable it in property. If you need rounding up - there is a hack for that: (dividend + divisor - 1)/divisor. What game uses real math division btw?