fork(2) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. float a = 7.5232f;
  8.  
  9. Console.WriteLine(BitConverter.ToString(BitConverter.GetBytes(a)));
  10. Console.WriteLine(BitConverter.ToString(BitConverter.GetBytes(a / 2.0f)));
  11. Console.WriteLine(BitConverter.ToString(BitConverter.GetBytes(a * 0.5f)));
  12. }
  13. }
Success #stdin #stdout 0s 131520KB
stdin
Standard input is empty
stdout
0E-BE-F0-40
0E-BE-70-40
0E-BE-70-40