How do I get a stat panel to display something like "$1.00" instead of "$1"?
This is for my 8k so I'd prefer there wasn't a 500-line code to do it with, but if its kinda short I probably have extra room :)
ID:168793
![]() Aug 26 2005, 4:29 pm
|
|
well I might have values like 1.39 or 55.21 :P
EDIT: how about... var/X = "[src.money]" I'll try that maybe yay |
if(round(src.money*10)/10 == src.money) that's what I needed. :) |
This is for my 8k so I'd prefer there wasn't a 500-line code to do it with, but if its kinda short I probably have extra room :) proc/num2currency(num) Kinda large but you could probably shave off some bytes shrinking the labels and removing whitespace :P. |
Or something along those lines?