Hi:
I have such a simple problem, it's embarrasing. (I do have a good excuse, as I've got the flu.... :eek: )
Anyways, all I wanna do is subtract two numbers, no problem.
But the result is omitting the decimal AND zeros IF it ends in .00
For example:
25.99-23.99 resuls in 2
but I need it to show 2.00
mycode:
$Savings=$i['RegularPrice']-$i['Price'];
echo "$".$Savings;
Both values are coming out a mySQL db, set as float(6,2).
Any ideas?
thanx
Kamy