lang • exp


Value = Exp ( Number AS Float ) AS Float

Computes value of e to the power of number.The number can be zero, negative or positive. The number must be less than 709.779999 to avoid overflow error.

The Exp function complements the action of Log Function. Thus it can be used to compute the antilogarithm of a number.


Print Exp(20)
Dim i As Integer
For i = -2 To 2
Print i, Exp(i)

-2    0.135335283237
-1    0.367879441171
0     1
1     2.718281828459
2     7.389056098931

See also