|
Leela Newbie
Joined: 16 Nov 2008 Posts: 1
|
Posted: Sun Nov 16, 2008 1:54 am
Adding decimals |
I'm attempting to add two decimals in the following manner:
#IF bla, bla, bla {#AD limbdamage .8}
#IF bla, bla, bla {#AD limbdamage 1.2}
limbdamage is a variable which I need to track the total of these two #AD until it equals or exceeds 4. The problem I'm having is the zillon or so places after the decimal is messing things up. I need to add .8 + 1.2 and get 2 or 1.2 + 1.2 and get 2.4. I've tried the #math command and that seems to work when adding .8 but it pukes on adding 1.2 Help? |
|
|
|
Erasmus Wanderer
Joined: 04 Aug 2004 Posts: 82 Location: Philadelphia
|
Posted: Sun Nov 16, 2008 3:18 am |
#VAR limbdamage %format(1,%eval(@limbdamage+0.8))
#VAR limbdamage %format(1,%eval(@limbdamage+1.2)) |
|
_________________ Erasmus |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|