DIAdem Help

Method: Log for VBS

  • Updated2024-09-12
  • 1 minute(s) read

Method: Log for VBS

Specifies the natural logarithm of a number.

vLog = Object.Log(number)
ObjectVBS
Object with this method. You do not need to specify this object.
numberVariant
Specifies any numeric expression that is greater than 0.
vLogVariant
Receives the natural logarithm of a number.

The following example calculates the natural logarithm of a number:

Dim MyVar
MyVar = Log(2.718) ' Returns 0.999896315728952
Call MsgBox(MyVar)

See Also

Objects Overview

Related Topics

Exp | Log | Sqr