double
描述
double 稱為雙精度浮點數,在 86Duino 上,double 型別占用 8 個位元組 (64 bit) 記憶體,其可以表示的最大範圍是 1.79769E+308 到 -1.79769E+308,詳細的資料可以參考 二進位浮點數算術標準 IEEE754。
範例
double mydouble;
double sensorCalbrate = 1.117;
語法
double var = val;
var
– 變數名稱
val
– 指派給變數的值
See also
- float
本頁由熱血青年 LBU 譯自英文版。
The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.