VBScript Log Function
Complete VBScript Reference Manual
The Log function returns the natural logarithm of a specified number. The natural logarithm is the logarithm to the base e.
**Note:** Negative values are not allowed.
**Tip:** See also the Exp function.
Syntax
Log(number)
| Parameters | Description |
|---|---|
| number | Required. A valid numeric expression greater than 0. |
Example
Example
The example above produces the following output:
3.64432088381777
Try it »
Complete VBScript Reference Manual