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.
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.