log10()
Calculates the decimal logarithm
Synopsis
float log10(float x);
Parameters
Parameter | Description |
---|---|
x | value greater than 0 |
Return value
In the event of an error, the function returns 0.0.
If the argument is lying outside of the value range ]0..], NaN (Not a Number) is returned.
Description
Returns the decimal logarithm (base 10) of x, for x > 0.
Example
main()
{
float f;
f=log(1); // returns 0
f=log10(100); // returns 2
}
Assignment
mathematical function
Availability
CTRL