码迷,mamicode.com
首页 > 其他好文 > 详细

[CareerCup] 5.2 Binary Representation of Real Number 实数的二进制表示

时间:2015-08-11 15:57:26      阅读:122      评论:0      收藏:0      [点我收藏+]

标签:

 

5.2 Given a real number between 0 and 1 (e.g., 0.72) that is passed in as a double, print the binary representation. If the number cannot be represented accurately in binary with at most 32 characters, print "ERROR."

 

[CareerCup] 5.2 Binary Representation of Real Number 实数的二进制表示

标签:

原文地址:http://www.cnblogs.com/grandyang/p/4721047.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!