Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Prodentim Probiotics Specially Designed For The Health Of Your Teeth And Gums

Instant Grammar Checker - Correct all grammar errors and enhance your writing

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

31,089 questions

40,774 answers

573 users

How to use sqrt() function to get the square root of N in PHP

1 Answer

0 votes
echo "sqrt(9) = " . sqrt(9) . "<br />";
echo "sqrt(1024) = " . sqrt(1024) . "<br />";
echo "sqrt(100) = " . sqrt(100) . "<br />";
echo "sqrt(2) = " . sqrt(2) . "<br />";


/*
run:
    
sqrt(9) = 3
sqrt(1024) = 32
sqrt(100) = 10
sqrt(2) = 1.4142135623731
      
*/

 





answered Jul 18, 2016 by avibootz

Related questions

1 answer 82 views
1 answer 87 views
1 answer 69 views
69 views asked May 7, 2019 by avibootz
1 answer 71 views
...