PHP sqrt() Function

The sqrt() function is used to the square root of a number.

Demo :



Type No :  
Decimal number is : 0

Example :

Example 1: Type No : 0
Example 2: Type No : 9
Example 3: Type No : 0.64

If you need to converts an square root of a number following code useful to you.


<?php
 $sqrt_no = 9;
 $result = sqrt($sqrt_no);
 echo $result;
?>

In the above code is used to converts an the square root of a number.In the sqrt() functions have used one arguments that name is float number.

Free Download Script :

If you need sqrt() function demo code download from following link.

Download




Content