Long Double
Previous 16-bit versions of Microsoft C/C++ and Microsoft Visual C++ supported the long double, 80-bit precision data type. In Win32 programming, however, the long double data type maps to the double, 64-bit precision data type. The Microsoft run-time library provides long double versions of the math functions only for backward compatibility. The long double function prototypes are identical to the prototypes for their double counterparts, except that the long double data type replaces the double data type. The long double versions of these functions should not be used in new code.
Double Functions and Their Long Double Counterparts
Function |
Long double counterpart |
Function |
Long double counterpart |
---|---|---|---|
acosl |
frexpl |
||
asinl |
_hypotl |
||
atanl |
ldexpl |
||
atan2l |
logl |
||
_atold |
log10l |
||
j0l, j1l, jnl |
_matherrl |
||
y0l, y1l, ynl |
modfl |
||
_cabsl |
powl |
||
ceill |
sinl |
||
cosl |
sinhl |
||
coshl |
sqrtl |
||
expl |
_strtold |
||
fabsl |
tanl |
||
floorl |
tanhl |
||
fmodl |
|
|