Hello i have a database column called price and the data in it is .1
I want to select this column using a select query and return it back to the application with 0.10. Is this possible to do this when selecting the column?
Thanks
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.
Do you want to return a number to the application? Or a string?
If you want to return a number, you don’t care about the formatting.
If you want to return a string, you can use the
TO_CHARfunction with the format mask ‘fm0.00’