log()
Learn how to use the log() function to return the natural logarithm of the input.
The natural logarithm is the base-e logarithm: the inverse of the natural exponential function (exp).
Syntax
log(number)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| number | real | ✔️ | The number for which to calculate the logarithm. |
Returns
log()returns the natural logarithm of the input.nullif the argument is negative or null or can’t be converted to arealvalue.
Example
print result=log(5)
Output
| result |
|---|
| 1.6094379124341003 |
Related content
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.