|  | ||
| 
 | 
 double log10( double x ) 
 double x; /* a double value */ 
 
 | 
 | 
| Synopsis | #include "math.h" 
 The log10 function calculates the base 10 logarithm of x , for x greater than 0. 
 | 
 | 
| Parameters | x is a double greater than 0. 
 | 
 | 
| Return Value | log10 returns the computed value if x is greater than 0. Otherwise, if x is negative log10 sets errno (the system error variable) to EDOM , or if x is 0, log10 sets errno to ERANGE . log10 returns a value equal to the negative of HUGE_VAL (approximately -1.79769e+308) in both error cases. 
 | 
 | 
| See Also | 
 | 
 | 
| 
 | 
 |