Name

log10 function — Computes common logarithm

Synopsis

float log10(float x)
double log10(double x)
long double log10(long double x)
image with no caption

The log10 function returns the common (base 10) logarithm of its argument. A domain error occurs if x is negative. A range error might occur if x is 0.

Get C++ In a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.