Admin Production ni-theme
Current Publication

log10

LabWindows/CVI

log10

double log10 (double inputValue);

Purpose

Computes the base-ten logarithm of the specified argument. If the argument is negative, it causes a domain error. If the argument is zero, it causes a range error.

Parameters

Input
Name Type Description
inputValue double Contains the argument to the function. If the value is negative, it causes a domain error. If the value is zero, it causes a range error.

Return Value

Name Type Description
result double Contains the resulting base-ten logarithm value. If the argument to the function is zero, log10 returns -Inf and sets errno to ERANGE. If the argument to the function is negative, log10 returns NaN and sets errno to EDOM.

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Examples

Refer to the following examples that use the log10 function:

  • analysis\iirfiltr.cws

    Open example
  • analysis\windowng.cws

    Open example