log()
Table of Contents
Overview
The log() function takes a number as an argument, and returns the natural logarithm of that number.
Return Type
- Decimal
Syntax
(OR)
Parameter | Description | Data type |
---|---|---|
<variable> | Variable which will contain the returned value. | DECIMAL |
<number> | The number whose natural logarithm value will be returned. Value which is equal to, or below 0, will return null. | NUMBER or DECIMAL |
Examples
logValue = number.log(); // returns 4.499809670330265