I need some help with this simple substraction:
$savings = ($newprice - $newvalue);
$newprice and $newvalue are values like 120.00 and 40.00
The problem is that the result is shown as 80 , without the .00 (dot00) at the end.
I will like to keep the values on the same format (a dot plus double cero at the end); what I need to change or include to that code ?
Thanks in advance
http://php.net/number_format