PHP pi() 函数

PHP 教程 · 2019-01-27 08:28:31

实例

返回圆周率 PI 的值:

<?php
echo(pi());
?>

定义和用法

pi() 函数返回圆周率 PI 的值。

提示:命名常量 M_PI 和 pi() 产生相同的结果。

语法

pi();

技术细节

返回值: 3.1415926535898
返回类型: Float
PHP 版本: 4+

点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

Pro Django

Pro Django

Marty Alchin / Apress / 2008-11-24 / USD 49.99

Django is the leading Python web application development framework. Learn how to leverage the Django web framework to its full potential in this advanced tutorial and reference. Endorsed by Django, Pr......一起来看看 《Pro Django》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

URL 编码/解码
URL 编码/解码

URL 编码/解码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具