fork(9) download
  1. using System;
  2. using System.Globalization;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. CultureInfo culture = new CultureInfo("fr-FR", false);
  9. NumberFormatInfo numberFormatInfo = (NumberFormatInfo)culture.NumberFormat.Clone();
  10. numberFormatInfo.CurrencySymbol = "CHF";
  11. numberFormatInfo.CurrencyPositivePattern = 1;
  12. Console.WriteLine((1.5M).ToString("C", numberFormatInfo));
  13. }
  14. }
Success #stdin #stdout 0.03s 33896KB
stdin
Standard input is empty
stdout
1,50CHF