Perl Programming/Keywords/exp

Previous: exit Keywords Next: fcntl

The exp keywordEdit

exp returns exponent e to the power of EXPRESSION. If EXPRESSION is omitted, exp($_) is executed.

SyntaxEdit

  exp EXPRESSION
  exp

ExamplesEdit

 
print exp(-15) . "\n";
print exp(2) . "\n";
2.71828182845905
7.38905609893065


See alsoEdit

Previous: exit Keywords Next: fcntl