Copyright © tutorialspoint.com

PERL exp Function


Syntax

exp EXPR

exp


Definition and Usage

Returns e (the natural logarithm base) to the power of EXPR. If EXPR is omitted, gives exp($_).

Return Value

  • Nothing.

Example

Following are the usage...

#!/usr/bin/perl

$var = exp(2);
print "Value of e**2 = $var\n";

This will produce
Value of e**2 = 7.38905609893065

Copyright © tutorialspoint.com