Thread: Exp() function
View Single Post
  #5 (permalink)  
Old 06-05-2008, 07:21 PM
agraham's Avatar
agraham agraham is online now
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,902
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Bruno View Post
tmp can be positive or negative
Code:
Sub exp(num)
  If num < 0 Then
    Return 1/(cE^Abs(num))
  Else
    Return cE^num
  End If
End Sub
Reply With Quote