Exp Function

Category: GUI » Visual Basic 6 » Function

Description: Returns e (the base of natural logarithms) raised to a power Syntax: Exp(number)

number Required. Any valid numeric expression

Return Data Type: Double Usage / Example Code:

StatementResult / ValueRemark / Note
exp(1) 2.71828182845905  
exp(709.782712893) 1.7976931341721E+308  
exp(709.782712894) Error Run-time error '6': Overflow
exp(-709.782712893) 5.56268464840376E-309  
exp(0) 1  
exp(unknown) 1 Uninitialized variable
exp(null) Error Run-time error '94': Invalid use of Null
exp("string") Error Run-time error '13': Type mismatch
exp("709.782712893") 1.7976931341721E+308 Input number as string
exp(True) 0.367879441171442  
exp(False) 1  
exp() Error Compile error: Argument not optional
exp((exp(1.3) - exp(-1.3)) / 2) 1.69838243729262 Calculate hyperbolic sine

Related Articles:

Tags: Math Functions, vb6