C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Long Double Functions
                                             Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The 8087 family of numeric coprocessor chips supports (in a
     limited way) an 80-bit precision floating-point data type. In
     Microsoft C/C++, the family of long double functions maps the C
     long double type into this 80-bit, 10-byte form.
 
     Unlike the regular functions (such as acos), which return values
     of type double, these long double functions (such as _acosl)
     return values of type long double. The long double functions also
     return their values on the coprocessor stack for all calling
     conventions.
 
     The long double type is also supported by the addition of the 'l'
     suffix for a floating-point format specification in the printf
     and scanf family of functions.
 
     The regular run-time functions and their corresponding long
     double equivalents are listed below:
 
     Function     Long Double Form     Function     Long Double Form
 
     acos         _acosl               frexp        _frexpl
     asin         _asinl              _hypot        _hypotl
     atan         _atanl               ldexp        _ldexpl
     atan2        _atan2l              log          _logl
     atof         _atold               log10        _log10l
     _cabs        _cabsl               _matherr     _matherrl
     ceil         _ceill               modf         _modfl
     cos          _cosl                pow          _powl
     cosh         _coshl               sin          _sinl
     exp          _expl                sinh         _sinhl
     fabs         _fabsl               sqrt         _sqrtl
     floor        _floorl              tan          _tanl
     fmod         _fmodl               tanh         _tanhl
                                    -♦-