PHP7.1 json_encode() Float Issue
This isn't a question as it is more of a be aware. I updated an application that uses json_encode() to PHP7.1.1 and I was seeing an issue with floats being changed to sometimes extend out 17 digits. According to documentation, PHP 7.1.x started to use serialize_precision instead of precision when encoding double values. I'm guessing this caused an example value of 472.185 to become 472.18500000000006 after that value went through json_encode() . Since my discovery, I have reverted back to PHP 7.0.16 and I no longer have the issue with json_encode() . I also tried to update to PHP 7.1.2 before