long double

[Data Types]

描述

The 86Duino supports long double, an 80-bit “double extended” format of floating-point numbers. The double extended format has a range from approximately 3.65E−4951 to 1.18E+4932, but it was designed not to store data at higher precision as such, but rather primarily to allow for the computation of double results more reliably and accurately by minimizing overflow and roundoff-errors in intermediate calculations. You may refer to the x86 Extended Precision Format for more details.

範例

long double myVar;
long double sensorCalbrate = 1.117;

語法

long double var = val;

var – your long double variable name
val – the value you assign to that variable


語法參考主頁面

86Duino 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。

發表評論

上部へスクロール