Long Double Functions
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The 8087 family of numeric coprocessor chips supports (in a
limited way) an 80-bit precision floating-point data type. In
Microsoft C version 6.0, 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 C run-time functions and their corresponding long
double equivalents are listed below:
Regular Function Long Double Form
acos acosl
asin asinl
atan atanl
atan2 atan2l
atof atold
cabs cabsl
ceil ceill
cos cosl
cosh coshl
exp expl
fabs fabsl
floor floorl
fmod fmodl
frexp frexpl
hypot hypotl
ldexp ldexpl
log logl
log10 log10l
matherr _matherrl
modf modfl
pow powl
sin sinl
sinh sinhl
sqrt sqrtl
tan tanl
tanh tanhl
-♦-