English
Language : 

CC78K0S Datasheet, PDF (264/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 10 LIBRARY FUNCTIONS
7-15 log10 (normal model only)
Mathematical Functions
FUNCTION
log10 finds a logarithm with 10 as the base.
HEADER
math.h
FUNCTION PROTOTYPE
double log10 (double x) ;
Function
log10
Arguments
x ... Numeric value on which
operation is performed
Return Value
Normal ... Logarithm with 10
of x as the base
When x ≤ 0 ... HUGE_VAL
(with negative sign)
When x is non-numeric ...
NaN
When x is infinite ... +∞
EXPLANATION
• Finds a logarithm with 10 of x as the base.
• If x is non-numeric, NaN is returned.
• If x is +∞, +∞ is returned.
• In the case of an area error of x < 0, HUGE_VAL with a negative sign is returned and EDOM is set to errno.
• If x = 0, HUGE_VAL with a negative sign is returned, and ERANGE is set to errno.
264
User’s Manual U14872EJ1V0UM