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
rwfrk
Wanderer


Joined: 26 Feb 2002
Posts: 81
Location: USA

PostPosted: Sat Dec 28, 2002 4:49 pm   

Use of exponets
 
appearntly its not ^..and i cant find it..trying to do
1000*((2^n)-1)qp & 10*((2^n)-1)points. Where QP and points are units
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Dec 28, 2002 5:38 pm   
 
There is no exponent function or operator. What's the purpose of this?

As long as n is a positive integer, you should have no difficulty writing a loop to do this. Depending on how large n can be, a lookup table might even work.

LightBulb
Senior Member
Reply with quote
rwfrk
Wanderer


Joined: 26 Feb 2002
Posts: 81
Location: USA

PostPosted: Sun Dec 29, 2002 4:20 am   
 
I suppose i'll just rewrite it as @varible x @variable ;)..Thanks anyway.
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