PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<sinhsrand>
Last updated: Mon, 16 Jul 2012

sqrt

(PHP 3, PHP 4, PHP 5)

sqrt -- 平方根

说明

float sqrt ( float arg )

返回 arg 的平方根。

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

参见 pow()




<sinhsrand>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST