Jump to content

Perl Programming/Keywords/exp

From Wikibooks, open books for an open world

This is the current revision of this page, as edited by XXBlackburnXx (discuss | contribs) at 22:59, 10 June 2023 (Reverted edits by 39.45.157.11 (talk) to last version by DannyS712). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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