Tutorials Point


  Perl Home

  PERL Functions

© 2011 TutorialsPoint.COM


  Home     References     About TP     Advertising  

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


Printer Friendly



  

Advertisement

Online Image Processing

Indian Baby Names