Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<sinhsrand>
Last updated: Tue, 19 Sep 2006

sqrt

(PHP 3, PHP 4, PHP 5)

sqrt -- Square root

Description

float sqrt ( float arg )

Returns the square root of arg.

Example 1. sqrt() example

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

See also pow().




<sinhsrand>
Last updated: Tue, 19 Sep 2006