2 /* @(#)z_log10.c 1.0 98/08/13 */
3 /******************************************************************
7 * x - floating point value
13 * This routine returns the logarithm of x (base 10).
15 *****************************************************************/
19 <<log10>>, <<log10f>>---base 10 logarithms
28 double log10(double <[x]>);
29 float log10f(float <[x]>);
32 <<log10>> returns the base 10 logarithm of <[x]>.
33 It is implemented as <<log(<[x]>) / log(10)>>.
35 <<log10f>> is identical, save that it takes and returns <<float>> values.
38 <<log10>> and <<log10f>> return the calculated value.
40 See the description of <<log>> for information on errors.
43 <<log10>> is ANSI C. <<log10f>> is an extension.
51 #ifndef _DOUBLE_IS_32BITS
56 return (logarithm (x
, 1));
59 #endif /* _DOUBLE_IS_32BITS */