sqrt

 
 
 

Returns the square root of a positive number.

float sqrt(float number)

number is the positive number of which you want the square root.

A negative number displays an error message.

Examples

sqrt(16)

Returns 4.

sqrt($side)

If $side is 25, this returns 5.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License