ID:172395
May 18 2004, 8:47 am
|
|
Is there a way to get rid of high numbers in a game such as 5.15678e+06 because i dont know how and i really want just regular numbers like 500000 instead of things like 5.15678e+06 I.E Exp Needed and so on. so is there a way to fix this?
|
May 18 2004, 9:36 am
|
|
Use a combination of round and num2text();
|
In response to Enigmaster2002
|
|
Enigmaster2002 wrote:
Use a combination of round and num2text(); stat("EXP needed","[num2text(round(src.EXPneed,1),7)]") stat("Experience: ","[num2text(round(src.exp,1),7)]") IT still doesnt do what i want it to |
In response to XzDoG
|
|
And 'what' do you want it to do
|
In response to Vash_616
|
|
Once i get over a million needed experience it goes to like 1e+02 etc and i dont want that
|
In response to XzDoG
|
|
Then increase the second argument in num2text() until it does what you want it to.
stat("EXP needed","[num2text(round(src.EXPneed,1),7)]") |
In response to Enigmaster2002
|
|
Enigmaster2002 wrote:
Then increase the second argument in num2text() until it does what you want it to. how exactly does the increasement work? |
In response to XzDoG
|
|
In the instance of the example I provided, 7 will display seven digits before it starts using scientific notation. So a value of 10 would display ten digits before scientific notation, a value of 2 would display two digits... etc etc.
|
In response to Enigmaster2002
|
|
thanks ive never used that before so now i know, thanks for the help
|
In response to XzDoG
|
|
XzDoG wrote:
thanks ive never used that before so now i know, thanks for the help Or, if you're going for completeness: proc |
In response to Goku72
|
|
after it goes past 1 bil, just replace it with "YOUR TOO HIGH LVL, GET A LIFE!"
lol |