Forum und email

sqrt

(PHP 4, PHP 5)

sqrt — 평방 제곱근

설명

float sqrt ( float $arg )

arg 의 평방제곱근을 반환합니다.

Example#1 sqrt() 예제

<?php
// 정밀도는 precision 설정에 의존합니다.
echo sqrt(9); // 3
echo sqrt(10); // 3.16227766 ...
?>

참고: pow().