Will there be any data loss when converting between double and decimal in mysql?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Doubles have ~16 decimal digits of precision. So the answer is no, since both types are declared to have 15 decimal digits of precision. (If the types had 16 digits, it would depend on the number stored since the precision of doubles is actually between 15 and 16 digits.)