411 REFERENCE · Wikibooks
Perl Programming/Keywords/sqrt
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Perl sprintf srand Keywords
The sqrt keyword
sqrt returns the positive square root of EXPRESSION. If EXPRESSION is omitted, $_ is used instead. Works for non-negative operands, if the Math::Complex module has not be loaded.
Syntax
sqrt EXPRESSION
Examples
print sqrt(1) . "\n";
print sqrt(2) . "\n"; 1
1.4142135623731
Perl sprintf srand Keywords