ln

Returns the natural logarithm of the number represented in number.

An error occurs if number is not a decimal number greater than zero.

Syntax

   ln(number)
Table 1. ln parameters
Parameter Type Description
number Decimal number Any decimal number

Returns

A string containing the natural log of the number, or an empty string if an error occurs.

Example

In this example, the result of ln is "0".

   <field sid="lnTestField">
      <label>Test ln()</label>
      <format>
         <datatype>string</datatype>
         <constraints>
            <mandatory>on</mandatory>
         </constraints>
      </format>
      <value compute="ln('1')"></value>
   </field>