php BC高精确度函数库
#两个高精度数比较
#int bccomp ( string $left_operand , string $right_operand [, int $scale ] )
#$left=$right 返回 0
#$left<$right 返回 -1
#$left>$right 返回 1
#$scale 小数点位数
#两个高精度数相加
#string bcadd ( string $left_operand , string $right_operand [, int $scale ] )
#$scale 返回的小数点个数
#两个高精度数相减
#sstring bcsub ( string $left_operand , string $right_operand [, int $scale ] )
#$scale 返回的小数点个数
#两个高精度数求余/取模
#string bcmod ( string $left_operand , string $modulus )
#两个高精度数相除
#string bcdiv ( string $left_operand , string $right_operand [, int $scale ] )
#$scale小数点位数默认为 0
#两个高精度数相乘
#string bcmul ( string $left_operand , string $right_operand [, int $scale ] )
#$scale小数点位数默认为 0
#两个高精度数的次方值
#string bcpow ( string $left_operand , string $right_operand [, int $scale ] )
#$scale小数点位数默认为 0
#求高精度数的平方根
#string bcsqrt ( string $operand [, int $scale ] )
#$scale小数点位数默认为 0
#设置bc函数的小数点位数
#bool bcscale ( int $scale )
#$scale小数点位数默认为 0
最新文章
- Linux C 信号 pause、sigsuspend 的相同与区别
- oracle当前的连接数
- LeetCode122:Best Time to Buy and Sell Stock II
- JavaScript继承与原型链
- HDU 4622 Reincarnation 后缀自动机
- C# 多线程处理相关说明: WaitHandle,waitCallback, ThreadPool.QueueUserWorkItem
- 广州Uber优步司机奖励政策(2月1日~2月7日)
- Qt入门(15)——使用窗口部件
- 经典:十步完全理解 SQL
- javascript启示录英文单词生词
- backbonejs mvc框架
- [数据结构]C语言链表实现
- 联合查询到gridview
- Struts源码之OgnlValueStack
- Shell Scripts - 循环while,until,for
- jmeter之关联
- select下拉框的数据回显
- curl 命令简介
- backbone学习笔记:模型(Model)(1)基础知识
- java类中成员的初始化顺序(一)