float和double類型的內存分佈和比較方法收藏

  文章出處:http://www.diybl.com/course/3_program/c++/cppsl/2008629/129103_2.htmlphp   C/C++的浮點數據類型有float和double兩種。 類型float大小爲4字節,即32位,內存中的存儲方式以下: html  符號位(1 bit) 指數(8 bit) 尾數(23 bit) 類型double大小爲8字節,即64位,
相關文章
相關標籤/搜索