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
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
You cannot multiply formatted numbers. You should do all of your calculations before you format the final result.