Monday, August 30, 2010

Visual Basic Math Function : Exp

Purpose : The Exp function raises the natural logarithmic base to the specified power. ( the natural logarithm, which has a base of about 2.718282 should not be confused with the common logarithm, whose base is 10.)

Syntax :
Exp ( dblPower )

dblPower : Numeric expression repression representing the power to which you want to raise the number e.

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

This example returns a double-precision number that represents the natural logarithmic base raised to the power of 14.

No comments:

Post a Comment