Perl Home
PERL Functions
© 2011 TutorialsPoint.COM
|
PERL sqrt Function
Syntax
Definition and Usage
Returns the square root of EXPR, or $_ if omitted. Most of the time, this function returns a floating point number.
Return Value
Example
Try out following example:
#!/usr/bin/perl -w
$result = sqrt(4);
print " sqrt(4) is $result\n";
|
It will produce following result:
|

|
|
|