ID:167995
 
is there a way to do this, so your numbers don't come out to be, say, E+0.032472834? thank you.
Yes... Don't make formulas that make stats go that high :/
In response to Mysame
Mysame wrote:
Yes... Don't make formulas that make stats go that high :/


-_-... come on i've seen plenty of games when your exp can go over 1 million, yet it comes out as something messed up. how can i format it to 1,000,000?
In response to XROBX
Make a proc for it, I have one that I made. It's really not that hard :)
In response to Derekjeterisgod
Derekjeterisgod wrote:
Make a proc for it, I have one that I made. It's really not that hard :)

hmmmmm im trying to figure it out then.... would it involve dividing each digit by multiples of 10 or sumthing? and then what? i have no idea really.
In response to XROBX
Hint, use the length proc and remember the number 1024 :)
In response to Derekjeterisgod
Derekjeterisgod wrote:
Hint, use the length proc and remember the number 1024 :)

man im sorry i have a small mind... this is what i have so far

proc
format(num)
var/len
len = length(num)
Use the num2text() proc.

mob
verb
Test(n as num)
if(!n) return
usr << num2text(n,12) // Converts numbers up to 12 figures long
In response to Nadrew
Nadrew wrote:
Use the num2text() proc.

> mob
> verb
> Test(n as num)
> if(!n) return
> usr << num2text(n,12) // Converts numbers up to 12 figures long
>


well it cetainly worked pretty well. not a mathmatical way to do it but then why would you need to use formatted numbers in formulas? thanks.
In response to XROBX
Right, you should only convert the number to text afterwards, if you ever need to change it back there's the text2num() proc.