using System;
using System.Linq;
public class Program
{
public static void Main(string[] args)
{
float value = 3.14f;
var bytes = BitConverter.GetBytes(value)
.Reverse()
.Select(x => Convert.ToString(x, 2))
.Select(x => x.PadLeft(8, '0'))
.Aggregate("0b", (a, b) => a + "_" + b);
Console.WriteLine(bytes);
}
}
// https://www.h-schmidt.net/FloatConverter/IEEE754.html
/*
run:
0b_01000000_01001000_11110101_11000011
*/