mIRC Home    About    Download    Register    News    Help

Print Thread
#207742 30/12/08 08:56 AM
Joined: Jul 2008
Posts: 10
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Jul 2008
Posts: 10
I feel rather stupid atm cause I'm pretty sure this will be the easiest thign to do, I just can't seem to find it confused

All I want to do is make the result of a calc into dollar format.

ie $calc(5000 * 5) I want it to display $25,000 not 25000 and same for any amount up to and over $10,000,000,000.

I have tried finding an identifier in the help but can't seem to find anything.

Evil_Panda #207743 30/12/08 09:12 AM
Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
There's not a direct method, but you can, however, cheat. wink
Code:
$chr(36) $+ $bytes($calc(5000*5),b)

Evil_Panda #207744 30/12/08 10:47 AM
Joined: Jul 2008
Posts: 10
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Jul 2008
Posts: 10
laugh

Thank you so much, that makes everythign I have so much cleaner.


Link Copied to Clipboard