ID:150322
 
Here is my problem. I have numbers in a Stat panel that go into scientific notation after they go past 1 million. Is there a way that I can fix that so the number goes higher than 1 million before going into a scientific notation format? Thanks!
Look up the num2text() proc in the reference.
In response to Nadrew
Nadrew wrote:
Look up the num2text() proc in the reference.

Is there a way to stick it in the following line?

stat("Health","[src.HP]/[src.MaxHP]")

I have tried many things but no luck. :(

Thanks again.
In response to Sticky50
Look at the librarys page for "Nadrew's leveling system" it will help you learn how to make stats..
In response to Sticky50
You can modify that line as follows:

stat("Health"."[num2text(src.HP,12)]/[num2text(src.MaxHP,12)]")

with proper arguments to the num2text procs, of course.

Remember that all procs will just return values. You can stick these values into text just like you can stick pure variables in.

This code accomplishes the same thing:

var/hp = num2text(src.HP,12)
var/max_hp = num2text(src.MaxHP,12)
stat("Health","[hp]/[max_hp]")