摘要: php浮点数精确运算Php: BCMathbc是Binary Calculator的缩写。bc*函数的参数都是操作数加上一个可选的 [int scale],比如string bcadd(string $left_operand, string $right_operand[, int $scale]... 阅读全文
posted @ 2015-12-25 15:53 archoncap 阅读(869) 评论(0) 推荐(0) 编辑
摘要: Relearning PHP (2) – php 的浮点数float暂无评论php有很多坑,但是并不妨碍他是最好的语言。其他语言对于浮点数处理同样有问题,这应该是个“共有坑”。不信可以用google搜索“java float 坑”或者“C++ float 坑”试试。做电商的同学,涉及到钱的方面,用到... 阅读全文
posted @ 2015-12-25 15:52 archoncap 阅读(241) 评论(0) 推荐(0) 编辑