I have a Double
value in a Java application coming from a server. I want to store that value in MySQL, but I don't want any kind of precision loss to happen.
It is sort of storing it as text
. How can I define the corresponding data type in a MySQL table for DOUBLE
to store it exactly as the application receives it?
I see in the MySQL documentation that the data type requires to pass precision. So I am not sure how to safely define it.