$log10

Return the base 10 logarithm of X (log10X).

$log10(X)

Parameters

X— positive numeric constant, or a field (or indirect reference to a field), variable, function, or expression that evaluates to a positive numeric value. X must be in the range 0 through 109999.

Return Values

Base 10 logarithm of X

If an error occurs, $procerror contains a negative value that identifies the exact error.

Values of $procerror Commonly Returned Following $log and $log10.
Value  Error constant Meaning
-1204 <UPROCERR_NEGATIVE> Negative value not allowed.
-1205 <UPROCERR_ZERO> Zero value not allowed.

Use

Allowed in all component types.

Description

The function $log10 returns the base 10 logarithm of X, that is, log10X.

Using $log10

The following example returns the base 10 logarithm of the given expression:

$NOTNATLOG$ = $log10(MYFIELD * 2)

If the value of MYFIELD is 50, the value stored in $NOTNATLOG$ is 2.

Related Topics