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 ");
}
}

最新文章

  1. 【转】NoSQL初探之人人都爱Redis:(2)Redis API与常用数据类型简介
  2. Fragment 与Activity之间的通信
  3. Intel+Ardruino 101 翻转时点灯
  4. Python基础(7)--函数
  5. NOJ 1643 阶乘除法(YY+小技巧)
  6. 九度OJ1084
  7. careercup-树与图 4.5
  8. SAS软件的使用和统计学分析的初步介绍
  9. configure: error: Cannot find php-config. Please use --with-php-config=PATH 错误的解决方案
  10. KICKSTART无人值守安装
  11. Oracle总结【SQL细节、多表查询、分组查询、分页】
  12. latex数学公式笔记
  13. There is no getter for property named &#39;XXX&#39; in &#39;class java.lang.String&#39;解决方法
  14. loadrunner 事务、同步点和思考时间
  15. PHP7 学习笔记(十四)Reids 键空间通知配合TP5 实现分布式延时任务
  16. Linux常用命令行补充——持续更新
  17. 编程菜鸟的日记-初学尝试编程-C++ Primer Plus 第4章编程练习3
  18. nginx反向代理mysql及负载
  19. bootstrap modal 弹出其他页面
  20. 【读书笔记】iOS-网络-使用Bonjour实现自组织网络

热门文章

  1. Makefile系列之一 : 书写规则
  2. php性能的问题
  3. 字符串aaaa......bbbb....ccc...dddddd用正则替换为abcd
  4. 阻止父类的create,是无法阻止的
  5. Linux非常用命令
  6. Guava Cache 使用笔记
  7. Jquery当div超出页面时就固定到顶部否则跟随页面滚动
  8. HDU 5114 扩展欧几里得
  9. centos6.5 宽带连接
  10. oracle常用函数整理