Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: sprintfChapter 5
Function Reference
Next: Reference: srand
 

sqrt

sqrt num

Returns the square root of num, or $_ if omitted. For other roots such as cube roots, you can use the ** operator to raise something to a fractional power.


Previous: Reference: sprintfPerl in a NutshellNext: Reference: srand
Reference: sprintfBook IndexReference: srand

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.