Home > Common Problem > body text

What does sqrt function mean?

爱喝马黛茶的安东尼
Release: 2019-08-17 11:01:51
Original
45039 people have browsed it

What does sqrt function mean?

What does the sqrt function mean?

Function: Find the square root of the parameters.

Related recommendations: "FAQ"

Syntax:

sqrt(X)
Copy after login

Parameters: X represents the number for finding the square root.

Description: Return the result of the square root of parameter X.

php sqrt() function usage example:

<?php
$i = 9;
$i = sqrt($i);
$j = 8;
$j = sqrt($j);
$k = -5;
$k = sqrt($k);
echo $i."*****".$j."*****".$k;
?>
Copy after login

Output:

3*****2.8284271247462*****NAN
Copy after login

The above is the detailed content of What does sqrt function mean?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!