I want to display game score in thousand separator format. I have written this kind of code for this purpose.
string format = "0,000,000";
gamePlayScoreText.text = GameManager.Instance.GamePlayScore.ToString (format);
By this code, I was getting this kind of output:
0,002,810
So from this, I want to remove leading zeros so my actual output will be: 2,810
So please give me some suggestion for this.