fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int k = 10050000;
  8. string str = Convert.ToBase64String(BitConverter.GetBytes(k));
  9. Console.WriteLine(str);
  10. int x = BitConverter.ToInt32(Convert.FromBase64String(str), 0);
  11. Console.WriteLine("{0} {1} {2}", k, x, x==k);
  12. }
  13. }
Success #stdin #stdout 0.02s 24060KB
stdin
Standard input is empty
stdout
0FmZAA==
10050000 10050000 True