I need to set the “Total Price” value to be a two decimal point value like “56.35”. Now it’s showing fraction values like “56.3566666”. I need it to be formatted by MySQL “SELECT” query.
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.
Do note that Format() returns a string, and the result will be with two decimal places (in the above example) – i.e. 100 will be formatted as 100.00.
Documentation.