会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
首页
新随笔
联系
管理
2021年10月6日
PHP 7.1 使用 json_encode 函数造成浮点类型数据出现精度问题(转)
摘要: 原文: https://her-cat.com/2018/07/10/accuracy-of-php71-json-encode.html 新项目用的 PHP 7.1.13 版本,在使用过程中发现 浮点类型 数据经过 json_encode 之后会出现精度问题。 举个例子: $data = [ 's
阅读全文
posted @ 2021-10-06 15:36 pine007
阅读(271)
评论(0)
推荐(0)
编辑