PHP 7.1+ floating point overflow problem after converting to json format
YBlin
YBlin 2018-08-24 12:54:51
0
0
851
$a = 9.94;
return 	json_encode($a);

The output result is actually

9.9399999999999995

How to solve this problem? The test is normal in 7.0 but there is a problem in 7.1

YBlin
YBlin

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template