fork(3) download
  1. using System;
  2. using System.Globalization;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var format = (NumberFormatInfo)CultureInfo.InvariantCulture.NumberFormat.Clone();
  9. format.NumberGroupSeparator = " ";
  10. Console.WriteLine(1590270.2018m.ToString("#,0.00", format));
  11. }
  12. }
Success #stdin #stdout 0.03s 14952KB
stdin
Standard input is empty
stdout
1 590 270.20