Mega Code Archive

 
Categories / Ruby / Development
 

The Math exp function returns Euler to the power of x

Math.exp(1) # => 2.71828182845905 Math.exp(11) # => 59874.1417151978