Home  >  Article  >  Web Front-end  >  What does PI mean in Jquery?

What does PI mean in Jquery?

青灯夜游
青灯夜游Original
2021-11-15 15:40:052964browse

In Jquery, PI refers to "π", which is the ratio of the circumference of a circle to its diameter (pi ratio). Its value is approximately "3.141592653589793", and the syntax is "Math.PI".

What does PI mean in Jquery?

The operating environment of this tutorial: windows7 system, jquery1.10.2 version, Dell G3 computer.

PI attribute is π, which is the ratio of the circumference of a circle to its diameter. This value is approximately 3.141592653589793.

Syntax:

Math.PI

Return value: Returns pi.

Example:

<script type="text/javascript">

document.write("PI: " + Math.PI);

</script>

What does PI mean in Jquery?

For more programming-related knowledge, please visit:Introduction to Programming! !

The above is the detailed content of What does PI mean in Jquery?. 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