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.
Examples
PRINT Exp(20)
DIM i AS INTEGER
FOR i = -2 TO 2
PRINT i, Exp(i)
NEXT
-2 0.135335283237
-1 0.367879441171
0 1
1 2.718281828459
2 7.389056098931
See also