Robofun 機器人論壇

 找回密碼
 申請會員
搜索
熱搜: 活動 交友 discuz
查看: 2071|回復: 1
打印 上一主題 下一主題

關於整數+小數

[複製鏈接]
跳轉到指定樓層
1#
發表於 2014-6-1 14:46:56 | 只看該作者 |只看大圖 回帖獎勵 |倒序瀏覽 |閱讀模式

請問為什麼 小數八位 答案是錯的
2#
發表於 2014-6-1 15:34:17 | 只看該作者
那是因為float這個型別
http://arduino.cc/en/Reference/Float
They are stored as 32 bits (4 bytes) of information.
Floats have only 6-7 decimal digits of precision
四byte大小,實際約6-7位準確
您需要登錄後才可以回帖 登錄 | 申請會員

本版積分規則

小黑屋|手機版|Archiver|機器人論壇 from 2005.07

GMT+8, 2024-9-30 15:33 , Processed in 0.232098 second(s), 9 queries , Apc On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表