In SQL I am looking at decimal and float. Float says it is an approximation. I need to store percentages. They don’t have to be very large or small. Some examples are
60.2
40
Which data type should I use?
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.
x is the total number of digits you want to be able to represent
y is the total number of digits after the decimal point that you want to be able to represent