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

 

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."

 

posted @ 2015-08-11 15:02  Grandyang  阅读(771)  评论(0编辑  收藏  举报
Fork me on GitHub