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.
Logarithmic Functions
 Description Example                     Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
  Include:   <math.h>, <errno.h>
 
  Syntax:    double log( double x );
             double log10( double x );
             long double _logl( long double x );
             long double _log10l( long double x );
 
  Returns:   the logarithm of <x> if successful; -HUGE_VAL (or
             -_LHUGE_VAL for the long double functions) if not.
             errno: EDOM (if <x> is less than 0)
                    ERANGE (if <x> is equal to 0)
 
  See also:  exp, ldexp, frexp, pow, sqrt, _matherr
                                    -♦-