Jump to content

Perl Programming/Keywords/exp

From Wikibooks, open books for an open world
Previous: exit Keywords Next: fcntl

The exp keyword

[edit | edit source]

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

Syntax

[edit | edit source]
  exp EXPRESSION
  exp

Examples

[edit | edit source]
print exp(1) . "\n";
print exp(2) . "\n";
2.71828182845905
7.38905609893065

See also

[edit | edit source]
Previous: exit Keywords Next: fcntl