7.12.6.8 The log10 functions

Synopsis

1

#include <math.h>
double log10(double x);
float log10f(float x);
long double log10l(long double x);

Description

2

The log10 functions compute the base-10 (common) logarithm of x. A domain error occurs if the argument is negative. A range error may occur if the argument is zero.

Returns

3

The log10 functions return log10 x.