string.Format("{0:c}",
102);
Using the above code will return a result like $102.00.
Since by default $ sign comes and if you want to change the symbol to other
like pound or sterling change the culture info details as the below code
sample.
string.Format(new CultureInfo("en-US"),
"{0:c}", 102);
// This code again gives $ symbol since I have used
“en-US” ;). Please check the sample language codes below to use the symbol you
require the complete list of language code is available in this url “http://msdn.microsoft.com/en-us/library/ms533052(v=vs.85).aspx”.
en-us
|
English (United States)
|
en-gb
|
English (United Kingdom)
|
en-au
|
English (Australia)
|
en-ca
|
English (Canada)
|
en-nz
|
English (New Zealand)
|
en-ie
|
English (Ireland)
|
en-za
|
English (South Africa)
|
en-jm
|
English (Jamaica)
|
en
|
English (Caribbean)
|
en-bz
|
English (Belize)
|
en-tt
|
English (Trinidad)
|
et
|
Estonian
|
fo
|
Faeroese
|
fa
|
Farsi
|
fi
|
Finnish
|
fr
|
French (Standard)
|
fr-be
|
French (Belgium)
|
fr-ca
|
French (Canada)
|
fr-ch
|
French (Switzerland)
|
fr-lu
|
French (Luxembourg)
|
gd
|
Gaelic (Scotland)
|
ga
|
Irish
|
de
|
German (Standard)
|
de-ch
|
German (Switzerland)
|
de-at
|
German (Austria)
|
de-lu
|
German (Luxembourg)
|
de-li
|
German (Liechtenstein)
|
el
|
Greek
|
For other formatting check this link : http://msdn.microsoft.com/en-us/library/s8s7t687(v=vs.71).aspx
Comments