fork(3) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. Console.WriteLine("{0:0.###%}", 0.000000095123);
  8. Console.WriteLine("{0:0.###%}", 0.0095123);
  9. Console.WriteLine("{0:0.###%}", 0.95);
  10. Console.WriteLine("{0:0.###%}", 0.95123);
  11. }
  12. }
Success #stdin #stdout 0.03s 33944KB
stdin
Standard input is empty
stdout
0%
0.951%
95%
95.123%