mIRC Home    About    Download    Register    News    Help

Print Thread
#247584 13/08/14 09:02 PM
Joined: Feb 2004
Posts: 7
A
ardit Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Feb 2004
Posts: 7
Hi,

Is there a way to round numbers?

something like this....

100000 is shown as 100K
1000000 is shown as 1M
1000000000 is shown as 1B

Any example appreciated!


ardit #247614 15/08/14 08:23 AM
Joined: Feb 2004
Posts: 7
A
ardit Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Feb 2004
Posts: 7
I tried $round but still no go...

Code:
{ set %num.1 $round($gettok(%num.temp,2,62),2) }


can someone please help me with this? thx


Link Copied to Clipboard