Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

exp

Returns e (Euler’s number) raised to the power of its argument.

Returns e raised to the power of EXPR, or $_ if omitted. The argument is coerced to Nv (f64). Always returns an Nv.

Synopsis

my $e  = exp(1);       # 2.71828...
my $r  = exp($x);
my $r  = exp;          # exp($_)

See Also

log, sqrt