Format Money

Hey, does anyone have an idea how to format the GUIText.Text string of an amount of money, like … 1000000€ to 1.000.000€ ?

You’re interested in string.Format, or you can just pass the format string to `.ToString’…

e.g. :

float value = 1234.56f;
Debug.Log("Value = " + value.ToString("C"));

edit: Also, this should honor the user’s current culture, so you should get the appropriate separator and currency symbol.