December 2005
Beginner to intermediate
618 pages
20h 19m
English
log10
Calculates the base-10 logarithm of a number
#include <math.h> doublelog10( doublex); floatlog10f( floatx); (C99) long doublelog10l( long doublex); (C99)
The log10() functions
calculate the common logarithm of their argument. The common
logarithm is the logarithm to base 10. The common logarithm of a
number x is defined only for positive
values of x. If
x is negative, a domain error occurs; if
x is zero, a range error may
occur.
See the example for log() in this
chapter.
Read now
Unlock full access