DIAdem Help

Method: Log for VBS

  • 已更新2024-09-12
  • 閱讀時間為 1 分鐘

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