long double

Description

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 name
val – the value you assign to that variable


Language Reference Home

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.