|
CC78K4 Datasheet, PDF (270/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language | |||
|
◁ |
CHAPTER 10 LIBRARY FUNCTIONS
7-38 log10f
Mathematical Functions
FUNCTION
log10f finds the logarithm with 10 as the base.
HEADER
math.h
FUNCTION PROTOTYPE
float log10f (float x);
Function
log10f
Arguments
x ... Numeric value to perform
operation
Return Value
Normal ... Logarithm with 10 of
x as the base
When x is non-numeric ... NaN
When x = +â ... +â
When x ⤠0 ... HUGE_VAL
(with negative sign)
EXPLANATION
⢠Finds the 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.
270
Userâs Manual U15556EJ1V0UM
|
▷ |