You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a monster that does less damage based on it's current HP.
The damage formula is (@attributes.hp.pct/100) * 10d10.
The current HP of the monster in this example is 57 of a 100HP maximum.
The display on the sheet is:
The sheet display should avoid precision errors or intentionally round as some HP values can actually be quite long decimals.
e.g. 10/15 would be a recurring decimal
The text was updated successfully, but these errors were encountered:
Seems like a much easier fix on your end, given how division beyond 2 and 4 just doesn't exist in the normal rules. Wrap the @ value in round() then do your division.
It's not even about the rounding, the value in the example should be 57 but it's shown as 56.999999999999 due to JavaScript precision errors. It's definitely something for the system to fix.
I've got a monster that does less damage based on it's current HP.
The damage formula is
(@attributes.hp.pct/100) * 10d10
.The current HP of the monster in this example is 57 of a 100HP maximum.
The display on the sheet is:
The sheet display should avoid precision errors or intentionally round as some HP values can actually be quite long decimals.
e.g. 10/15 would be a recurring decimal
The text was updated successfully, but these errors were encountered: