Important This documentation space contains information about PATROL Agents when deployed in a TrueSight Operations Management environment. If you are a BMC Helix Operations Management user, see PATROL Agent 22.3.01 for BMC Helix Operations Management.

log10()


Return the logarithm to base 10 of the argument.

Syntax

log10(argument)

Parameter

Parameter

Definition

argument

numeric value whose base 10 logarithm is to be determined

*Valid Values* 
argument > 0

Description

The log10() function returns the logarithm of argument with respect to base 10. The output range for the log10() function is – ∞ < log10() < ∞ .

Example

The following log10() function calls print a number of useful physical and mathematical constants:

function main() {
PI = 3.141593;
printf("log10(PI) = %7.4f\n",log10(PI));
printf("log10( e) = %7.4f\n",log10(exp(1)));
printf("log10( 2) = %7.4f\n",log10(2));
printf("log10( 3) = %7.4f\n",log10(3));
return;}

The example produces the following output:

log10(PI) = 0.4971
log10( e) = 0.4343
log10( 2) = 0.3010
log10( 3) = 0.4771

 

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*