Home  >  Article  >  What does sqrt function mean?

What does sqrt function mean?

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-08-17 11:01:5145132browse

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)

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;
?>

Output:

3*****2.8284271247462*****NAN

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!

Statement:
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
Previous article:What does cpf mean?Next article:What does cpf mean?