◄Description► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back► ──────────────────────────────────────────────────────────────────────────── 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, or -HUGE_VAL if not. errno: EDOM (if <x> is less than 0) ERANGE (if <x> is equal to 0) See also: exp, matherr, pow -♦-