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.
Logarithmic Functions
◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The log and log10 functions calculate the natural logarithm and
base-10 logarithm of <x>, respectively.
The ...l functions use the 80-bit long double form of arguments
and return values. In all other respects, they are identical to
the regular functions.
Return Value
These functions return the logarithm result. If <x> is negative,
the functions print a DOMAIN error message to stderr, return the
value -HUGE_VAL, and set errno to EDOM. If <x> is 0, the functions
print a SING error message to stderr, return the value -HUGE_VAL,
and set errno to ERANGE.
Error handling can be modified by using the matherr (or _matherrl)
routine.
-♦-