Everything

log10 / log10f / log10l


Calculates the base-ten logarithm of a floating-point number.

[Format]

#include <math.h>

double log10 (double d);

float log10f(float d);

long double log10l(long double d);

[Parameters]

d Floating-point number for which base-ten logarithm is to be computed

[Return values]

Normal: Base-ten logarithm of d

Abnormal: Domain error: Returns not-a-number.

[Remarks]

A domain error occurs if d is negative.

A range error occurs if d is 0.0.