SYNTAX

<Number>.log

Returns a Decimal value equal to the logarithm (base 10) of <Number>. If <Number> is equal to 0 (zero) an error is returned when the rule is executed.

The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.

The following Rulesheet uses .log to calculate the logarithm (base 10) of integer1 and assign it to decimal1.

A sample Ruletest provides results for three examples of integer1. Input and Output panels are shown below:

Note: In a case where the rule encounters log(0), it throws an exception that halts execution. That's because the value of log(0) is undefined. If the rule is executing against multiple entities, the arbitrary order of execution might be different on subsequent runs before execution is halted.