Use current culture to format currency
using System;
using System.Globalization;
using System.Windows.Forms;
public class MainClass
{
static void Main() {
CultureInfo current = CultureInfo.CurrentCulture;
double money = 123.45;
string localMoney = money.ToString( "C", current );
MessageBox.Show( localMoney, "Local Money" );
}
}
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|