Cari di Perl 
    Perl User Manual
Daftar Isi
(Sebelumnya) Return the sine of a numberSeed the random number generator (Berikutnya)
Numeric functions

Square root function

Daftar Isi

  • sqrt EXPR

  • sqrt

    Return the positive square root of EXPR. If EXPR is omitted, uses$_. Works only for non-negative operands unless you'veloaded the Math::Complex module.

    1. use Math::Complex;
    2. print sqrt(-4); # prints 2i
 
Source : perldoc.perl.org - Official documentation for the Perl programming language
Site maintained by Jon Allen (JJ)     See the project page for more details
Documentation maintained by the Perl 5 Porters
(Sebelumnya) Return the sine of a numberSeed the random number generator (Berikutnya)