I don't seem to find an easy way to simply format text. Some thing like moneyText = "$"&str(moneyValue)
Looking for something like $ 35.37 or $35.40 the 35.40 gives me 35.4 want to see both decimal places.
Thanks in advance for any help.
Mabe this can help you: https://www.scirra.com/forum/viewtopic.php?f=147&t=79284&p=791551&hilit=currency#p791551
Develop games in your browser. Powerful, performant & highly capable.
I don't seem to find an easy way to simply format text. Some thing like moneyText = "$"&str(moneyValue) Looking for something like $ 35.37 or $35.40 the 35.40 gives me 35.4 want to see both decimal places. Thanks in advance for any help.
"$"&int(moneyValue)&"."&int((moneyValue-int(moneyValue))*100) should return the good value I think.