1. Home
  2. Computing & Technology
  3. PHP / MySQL

Sqrt () PHP Function

By Angela Bradley, About.com

Definition: The SQRT () function calculates the square root of any inputed number.
Examples:

<?php
print sqrt (9);
// this would return the value 3
print sqrt (27.04);
//this would return the value 5.2
?>

Explore PHP / MySQL

More from About.com

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. PHP Functions
  5. SQRT 9 - Square Root - SQRT PHP

©2008 About.com, a part of The New York Times Company.

All rights reserved.