I am having a problem with number_format. Here is how I am trying to use it:
When I try to multiply it with quantity it returns 1. for example
1,200.00 * 2
It returns 1. How can I make it return 2,400.00?
What I missing? 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.
You cannot multiply formatted numbers. You should do all of your calculations before you format the final result.