Kyle's character sheets, Problems with auto-calculation of Essence |
Kyle's character sheets, Problems with auto-calculation of Essence |
Nov 4 2014, 10:11 AM
Post
#1
|
|
Shooting Target Group: Members Posts: 1,768 Joined: 31-October 08 From: Redmond (Yes, really) Member No.: 16,558 |
I love Kyle's 5th edition character sheets, but the latest one (2.5a) doesn't calculate Essence correctly (at least in Foxit Reader). For example, if I have .01 Essence left it displays as .009999 etc.
Could/would someone with PDF editing experience fix this? |
|
|
Nov 4 2014, 10:49 AM
Post
#2
|
|
Moving Target Group: Members Posts: 212 Joined: 17-January 10 From: Sweden Member No.: 18,046 |
Sounds like classic float error.
(0.1 can not be represented in a digital way, just like we can't write 1/3 in decimal form.) Try set essence to 0.0100001 and it should round the other way (hopefully) I can confirm the error is repeatable in other pdf viewers. The form shows a derived value using float. By making my cyber cost 5.98999999999999 the essence left shows 0.010000000000000 instead but that looks a bit stupid as well. But it is a sort of temporary fix if needed. |
|
|
Nov 10 2014, 03:52 AM
Post
#3
|
|
Shooting Target Group: Members Posts: 1,768 Joined: 31-October 08 From: Redmond (Yes, really) Member No.: 16,558 |
Sounds like classic float error. (0.1 can not be represented in a digital way, just like we can't write 1/3 in decimal form.) Try set essence to 0.0100001 and it should round the other way (hopefully) I can confirm the error is repeatable in other pdf viewers. The form shows a derived value using float. By making my cyber cost 5.98999999999999 the essence left shows 0.010000000000000 instead but that looks a bit stupid as well. But it is a sort of temporary fix if needed. There's no way to fix the code? |
|
|
Lo-Fi Version | Time is now: 19th April 2024 - 11:57 PM |
Topps, Inc has sole ownership of the names, logo, artwork, marks, photographs, sounds, audio, video and/or any proprietary material used in connection with the game Shadowrun. Topps, Inc has granted permission to the Dumpshock Forums to use such names, logos, artwork, marks and/or any proprietary materials for promotional and informational purposes on its website but does not endorse, and is not affiliated with the Dumpshock Forums in any official capacity whatsoever.