I want to support 8.0, 8.22,8.333 ect using a decimal. What is the best way to accomplish this?
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.
A DECIMAL field has a fixed precision and can’t be made to vary per-record. If you want variable precision, you’d need to use a FLOAT. Or you have a decimal field set to the highest required precision, and then use a second integer field to store how many digits that particular record should use.