![]() | V. BCMath 任意精度数学函数库简介PHP 为任意精度数学计算提供了二进制计算器 (Binary Calculator),他支持任意大小和精度的数字,以字符串形式描述。 需求自 PHP 4.0.4 以来,libbcmath 都绑定在 PHP 内部。这个扩展不需要其它外部库的支持。 安装These functions are only available if PHP was configured with --enable-bcmath. In PHP 3, these functions are only available if PHP was not configured with --disable-bcmath. PHP 的 Windows 版本已经内置该扩展模块的支持。无需加载任何附加扩展库即可使用这些函数。 运行时配置这些函数的行为受 php.ini 的影响。
表格 1. BC math configuration options
以下是该配置选项的简要解释。
资源类型本扩展模块未定义任何资源类型。 预定义常量本扩展模块未定义任何常量。
| ![]() | ||||||||