log()
The natural logarithm is the base-e logarithm: the inverse of the natural exponential function (exp).
Syntax
log(
number)
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
number | real |
✔️ | The number for which to calculate the logarithm. |
Returns
log()
returns the natural logarithm of the input.null
if the argument is negative or null or can't be converted to areal
value.
Example
print result=log(5)
Output
result |
---|
1.6094379124341003 |
Related content
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for