Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jess84 on September 30, 2014, 12:12:35 AM

Title: [SOLVED] Easy way of formatting string numbers?
Post by: jess84 on September 30, 2014, 12:12:35 AM
Hello,

I have some int values like 10000000.  And I'm converting them to strings to display on my GUI Text components. (they're scores).

What's the easiest/best way of getting them formatted with commas inserted in the right places, e.g. 1,000,000?

(These scores could be any value between 0-100,000,000. )

Title: Re: Easy way of formatting string numbers?
Post by: escpodgames on September 30, 2014, 12:34:08 AM
When you convert the int to a string, there is a format section of that action type n0

Easiest and best :)
Title: Re: Easy way of formatting string numbers?
Post by: jess84 on September 30, 2014, 10:45:34 AM
Great, thanks. I had no idea about the formatting options!

(And i usually just use Format String, because it's an awesome action :) )