Hi all! does anyone know why a json file (a float in particular) changes after insert? 2 different mysql versions and 2 different OS.
I just post a screen to let you know.
I may open an issue, because it's very, very strange. And annoying too.
That is how it should be.
Float numbers are not precise.
When you type the JSON body in, you type a numeric literal (usually implemented as numeric/decimal value), which is presise. Then the JSON body should be converted into internal representation where all numbers are double floats. They are not presise decimal value, but binary ratio. During this conversion you can get some error in the value. Then the values get printed, this also converts values from binary ratio to decimal value, this also gives you some error.