Log10, Log log10 – Zilog EZ80F916 User Manual
Page 368

UM014423-0607
C Standard Library
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
348
ldiv_t t;
long q;
long r;
t=ldiv(x,y);
q=t.quot;
r=t.rem;
log
Computes the natural logarithm of x. A domain error occurs if the argument is negative. A
range error occurs if the argument is zero.
Synopsis
#include
double log(double x);
Returns
The natural logarithm.
Example
double x=2.56;
double y;
y=log(x);
log10
Computes the base-ten logarithm of x. A domain error occurs if the argument is negative.
A range error occurs if the argument is zero.
Synopsis
#include
double log10(double x);
Returns
The base-ten logarithm.
Example
double x=2.56;
double y;
y=log10(x);
This manual is related to the following products: