[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.
Example
long double myVar; long double sensorCalbrate = 1.117;
Syntax
long double var = val;
var
– your long double variable nameval
– the value you assign to that variable
Language Reference Home
86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。