sqrt

(PHP 3, PHP 4, PHP 5)

sqrt -- 平方根

說明

float sqrt ( float arg )

返回 arg 的平方根。

例子 1. sqrt()

<?php
// Precision depends on your precision directive
echo sqrt(9); // 3
echo sqrt(10); // 3.16227766 ...
?>

參見 pow()