Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP sqrt

<?php
  
#The sqrt function finds the square root of a number

echo(sqrt(4));
# Outputs 2

echo(sqrt(-4));
#This is an impossible maths equation so, it returns NaN
?>
 
PREVIOUS NEXT
Tagged: #PHP #sqrt
ADD COMMENT
Topic
Name
9+6 =