fork download
  1. using System;
  2. using System.Globalization;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. double value = double.Parse("123.00000000", CultureInfo.InvariantCulture);
  9. Console.Write(value.ToString("N2"));
  10. }
  11. }
Success #stdin #stdout 0.03s 33952KB
stdin
Standard input is empty
stdout
123.00