new CultureInfo( "de-DE" )
using System;
using System.Globalization;
public class EntryPoint
{
static void Main() {
CultureInfo current = CultureInfo.CurrentCulture;
CultureInfo germany = new CultureInfo( "de-DE" );
CultureInfo russian = new CultureInfo( "ru-RU" );
double money = 123.45;
string localMoney = money.ToString( "C", current );
Console.WriteLine( localMoney+ " Local Money" );
localMoney = money.ToString( "C", germany );
Console.WriteLine( localMoney+ " German Money" );
localMoney = money.ToString( "C", russian );
Console.WriteLine( localMoney+ " Russian Money" );
}
}
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
-
|