Warcraft III resources & community, 2003–2006 · archived

Decimal Rounding/Displaying as Game Text

4 posts
#1

Decimal Rounding/Displaying as Game Text

Well i have this trigger in my map that displays the life of the hero, but it shows it as a decimal. for example it would display

Heros life = 250.00

is there a way i can change it to be just 250 without the .00?

thanks guys.
#2
Convert it to an interger before displaying it.
#3
NVM I OWN LIFE.
#4
Convert it to integer, then to string or either covert it to string and use Substring function to cut off the ".00".