![](templates/Classic/images/spacer.gif) |
Ivar Newbie
Joined: 23 Jul 2002 Posts: 6 Location: Sweden
|
Posted: Tue Jul 23, 2002 6:39 pm
How do I multiplicate in a Alias? |
I got problems to make a multiplication in a alias.
I got a code like this:
#MATH finalmoney @cash-@startingmoney
#MATH moms @finalmoney*0,25
#SHOW Total sell was :@finalmoney coins.
#SHOW Moms : @moms coins. (25%)
This is the trubble:
#MATH moms (@finalmoney) I want to multiplicate this with 0,25 or I want to have 25% out of it.
Someone who know how I do... if you don't understand what I meen please let me know...
Thanks...
Ivar the genius Master Enchanter. |
|
|
![](templates/Classic/images/spacer.gif) |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Jul 23, 2002 9:02 pm |
zMUD doesn't support floating point (decimal fractions) arithmetic in the current public version (6.16). So, instead of multiplying by 0,25 divide by 4.
#MATH finalmoney {@cash-@startingmoney}
#MATH moms {@finalmoney/4}
#SHOW Total sell was :@finalmoney coins.
#SHOW Moms : @moms coins. (25%)
LightBulb
Senior Member |
|
|
![](templates/Classic/images/spacer.gif) |
Ivar Newbie
Joined: 23 Jul 2002 Posts: 6 Location: Sweden
|
Posted: Tue Jul 23, 2002 10:41 pm |
Thanks for the help this time it worked a lot better..:)
Thanks again..
Ivar the genius Master Enchanter. (Playing at Midnight Sun) |
|
|
![](templates/Classic/images/spacer.gif) |
Ivar Newbie
Joined: 23 Jul 2002 Posts: 6 Location: Sweden
|
Posted: Tue Jul 23, 2002 10:41 pm |
Thanks for the help this time it worked a lot better..:)
Thanks again..
Ivar the genius Master Enchanter. (Playing at Midnight Sun) |
|
|
![](templates/Classic/images/spacer.gif) |
|
|