mIRC Home    About    Download    Register    News    Help

Print Thread
#149142 14/05/06 03:30 PM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
I have some scripts, that do some calculations for me.
The results would be:

Growth 1: 1250
Growth 2: 25000
Growth 3: 87500
Growth 4: 837500

The numbers are correct, but I would like to format them a bit.
So, the results would be:

Growth 1: 1.250
Growth 2: 25.000
Growth 3: 87.500
Growth 4: 837.500

Does anyone know how to achieve this?

Thx smile

Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Commas: $bytes(<number>,b)
Periods: $replace($bytes(<number>,b),$chr(44),.)

Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Awesome smile

Thx Hixxy

S
schaefer31
schaefer31
S
$comma() by FiberOPtics

Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Most of the bugs that made that snippet useful have been fixed. It still has its uses (if decimals are going to be in the number) and serves as a good regex example, but it isn't needed in this case.


Link Copied to Clipboard