Tdk Newbie
Joined: 27 Oct 2003 Posts: 2 Location: United Kingdom
|
Posted: 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
Thanx oh wize and all knowing ones |
|