Returns the natural logarithm of the number represented in number.
An error occurs if number is not a decimal number greater than zero.
ln(number)
Parameter | Type | Description |
---|---|---|
number | Decimal number | Any decimal number |
A string containing the natural log of the number, or an empty string if an error occurs.
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>