fork download
  1. using System.Globalization;
  2.  
  3. public class Program {
  4. public static void Main() {
  5. var minhaCultura = new CultureInfo("pt-BR");
  6. minhaCultura.DateTimeFormat.ShortDatePattern = "dd/MM/yyyy";
  7. minhaCultura.DateTimeFormat.ShortTimePattern = "HH:mm";
  8. minhaCultura.NumberFormat.NumberDecimalDigits = 2;
  9. minhaCultura.NumberFormat.NumberGroupSeparator = "_";
  10. minhaCultura.NumberFormat.NumberDecimalSeparator = ",";
  11. System.Console.WriteLine(string.Format(minhaCultura, "{0:N}", 43239.11));
  12. }
  13. }
  14.  
  15. //https://pt.stackoverflow.com/q/44957/101
Success #stdin #stdout 0.02s 16612KB
stdin
Standard input is empty
stdout
43_239,11