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
Tdk
Newbie


Joined: 27 Oct 2003
Posts: 2
Location: United Kingdom

PostPosted: Mon Oct 27, 2003 10:58 am   

Rounding on %format() ??
 
Hey folks :-)
Been using Zmud a while now and reading the posts , and picked up some very helpful tips on the boards. But i have a question now that i cant seam to find an answer to.

I have a Mud Prompt as below :

Hp: 363/363 Mp: 128/703 Exp: 181513587 TI

With a trigger as such:

Hp: (%d)/(%d) Mp: (%d)/(%d) Exp: (%d)

now %1-%4 all go in to vars that i use elsewhere. %5 i use with this :
#sub "Hp: %1/%2 Mp: %3/%4 Exp: "%format("&1.0n",%5)

Purly for asthetics. now the problem i have is this, the %format() number i get out, isnt whats being put in. It is very close, in the above example i get 181,513,584 out of it if i type #show %format("&1.0n",181513587) directly into the cmd line i still get a slight off number.

I have tried assigning the number to a var then working on it, and as above working on it direct from the prime trigger via %5

Anyone shed any light ? Its not causing me a problem, but its niggling me Very Happy

Thanx oh wize and all knowing ones
Reply with quote
hatespyware
Apprentice


Joined: 16 Dec 2002
Posts: 103

PostPosted: Mon Oct 27, 2003 12:34 pm   
 
You've found a bug.
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