Search DaTutorials:  
HOME
Php Tutorials
Articles
Basics
Date and Time
File Manipulations
Forms
Functions
General
Interactivity
MySql
Navigation
News,Shoutboxes and Blogs
Language Structure and Data Types
Searching
Security
String Manipulation
User Information and Stats
Search For a Tutorial
Php Reference

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().



Copyright © 2001-2004 The PHP Group
All rights reserved.

     Personal Injury Attorney Los Angeles | Mortgage | Loans | MySpace Editor | Apply for Credit Card
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp