How do I prevent Decimal separators.
1 Like
What Jack did, but to add a bit to it, round() rounds the variable up, so, 2.8 would become 3. What you might be interested in is trunc(). It removes the decimal bits (so 2.8 becomes just 2) which can be useful in the case of, say, timers.
Toodles!
2 Likes
"Score: " + (GlobalVariableString(tourscore0))
this show the decimal points like 12.2636999. How can I get rid of them? I tried trunc() but I seem to be using it wrong?
Use "Score: " + ToString(trunc(Variable(tourscore0)))
1 Like
Thank you very much, It worked!