fork(1) download
  1. using System;
  2. using System.Threading;
  3. using System.Globalization;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. Thread.CurrentThread.CurrentCulture = new CultureInfo("ar-SA");
  10. Console.WriteLine("{0:0.###%}", 0.000000095123);
  11. Console.WriteLine("{0:0.###%}", 0.0095123);
  12. Console.WriteLine("{0:0.###%}", 0.95);
  13. Console.WriteLine("{0:0.###%}", 0.95123);
  14. }
  15. }
Success #stdin #stdout 0.04s 34800KB
stdin
Standard input is empty
stdout
0٪
0٫951٪
95٪
95٫123٪