float floatA = 2.2f;
uint a = BitConverter.ToUInt32(BitConverter.GetBytes(floatA), );
for (int i = ; i < ;++i )
{
uint temp = 0x80000000 & (a << i);
if (temp==)
{
Console.Write("0 ");
}
else
{
Console.Write("1 ");
}
} Console.WriteLine(); double doubleA = 2.2;
ulong b = BitConverter.ToUInt64(BitConverter.GetBytes(doubleA), );
for (int i = ; i < ; ++i)
{
ulong temp = 0x8000000000000000 & (b << i);
if (temp == )
{
Console.Write("0 ");
}
else
{
Console.Write("1 ");
}
}