Synopsis
#include <math.h>
float log10f(float x);
Description

log10f computes the base-10 logarithm of x.

Fast math library behavior

If x = 0, errno is set to ERANGE and log10f returns -HUGE_VALF.
If x < 0, errno is set to EDOM and log10f returns -HUGE_VALF.

IEC 60559 math library behavior

If x < 0 or x = -?, log10f returns NaN with signal.
If x = 0, log10f returns -? with signal.
If x = ?, log10f returns ?.
If x = NaN, log10f returns x with no signal.

Portability

log10f conforms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).