<< Prev        Next >>

ID : 233

Log

Function

To return a natural logarithm.

Syntax

Log(number)

Guaranteed entry

number
Designate Double Precision Real Number Type data higher than 0.

Return value

Return Double Precision Real Number Type data.

Description

A natural logarithm is returned.

Natural logarithm is a logarithm to the base of constant e. The value of constant e is about 2.718282.

Related Terms

Log10, Exp

Attention

A runtime error occurs when a numeric value below 0 is specified in argument number.

Example

'!TITLE "Acquiring Natural Logarithm"
' Acquire a natural logarithm of 2
Sub Sample_Log

  Dim aaa As Integer

  ' Assign a natural logarithm of 2 to aaa
  aaa = Log( 2 )

  ' Display "1" on the message output window
  PrintDbg aaa

End Sub

ID : 233

<< Prev        Next >>