Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Ivar
Newbie


Joined: 23 Jul 2002
Posts: 6
Location: Sweden

PostPosted: 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.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Ivar
Newbie


Joined: 23 Jul 2002
Posts: 6
Location: Sweden

PostPosted: 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)
Reply with quote
Ivar
Newbie


Joined: 23 Jul 2002
Posts: 6
Location: Sweden

PostPosted: 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)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net