skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Natural logarithm
 

Try Corticon Now

Natural logarithm

SYNTAX

<Number>.ln

DESCRIPTION

Returns a Decimal value equal to the natural logarithm (base e) of <Number>. If <Number> is equal to 0 (zero), an error is returned when the rule is executed. This error will halt execution for all data present.

USAGE RESTRICTIONS

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

RULESHEET EXAMPLE

The following Rulesheet uses .ln to calculate the natural logarithm of decimal2 and assign it to decimal1.

SAMPLE RULETEST 1

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

SAMPLE RULETEST 2

Another sample Ruletest for three examples of decimal2 where one example is equal to zero (0). The resulting error is illustrated below: