how can i round this number in my stats
stat("Level:","[num2text(level,0)]")
VegeanSX
ID:175906
![]() Feb 27 2003, 8:40 pm
|
|
![]() Feb 27 2003, 8:41 pm
|
|
round()
|
I tried this i made it so everytime I level up the exp goes up by X 1.5 and if on an odd number it rounds it up!!!
|
Your problem is that you're passing zero as the second argument to num2text(). If you look num2text() up in the reference, it defines the second argument as being the number of significant figures; if there are more digits in the number than that, it will use scientific notation. So when you set it to zero, it ALWAYS uses scientific notation - so you get 3e+001 instead of 30.
Take the ,0 bit out. |