Bug #73680 [Opn->Nab]: json_encode on window error
| From: | yohgaki@php.net | Date: | Thu, 08 Dec 2016 03:10:59 +0000 |
| Subject: | Bug #73680 [Opn->Nab]: json_encode on window error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-205831@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73680&edit=1
ID: 73680
Updated by: yohgaki@php.net
Reported by: xltxlm at qq dot com
Summary: json_encode on window error
-Status: Open
+Status: Not a bug
Type: Bug
Package: JSON related
-Operating System: window
+Operating System: Irrelevant
PHP Version: 7.1.0
Block user comment: N
Private report: N
New Comment:
Use lower serialize_presision if you do not want this kind of outputs.
i.e. IEEE float value is not "precise" float value.
Previous Comments:
------------------------------------------------------------------------
[2016-12-08 01:56:57] xltxlm at qq dot com
Description:
------------
var_dump(json_encode([100.1]));
Expected result:
----------------
string(7) "[100.1]"
Actual result:
--------------
string(20) "[100.09999999999999]"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73680&edit=1