How are floating point values in JSON data columns rounded in MySQL (5.7)?
I am having trouble finding a good resource to know how to solve my issue.
Here's what happens:
CREATE TABLE someTable (jdoc JSON);
INSERT INTO someTable VALUES('{"data":14970.911769838869}');
Then select the rows:
SELECT * from someTable;
I get data back with a different final digit:
'{"data": 14970.911769838867}'
Any idea why this happens? Can I adjust the data in a way to prevent this or is there a rounding precision issue?