Monday, August 30, 2010

Visual Basic Math Function : Log

Purpose : The Log function returns the natural logarithm of a numeric expression. the natural logarithm, which has a base of approximately 2.718282.

Syntax :
Log ( dblExpression )

dblExpression : Numeric expression for which you want to return the natural logarithm

Dim dblNumber , dblResult as Double
dblNumber = 14
dblResult = Log ( dblNumber )

This example returns a double precision number that represents the natural logarithm for 14.

No comments:

Post a Comment