Forum Moderators: coopster
I get the values from a form page and I add all the values put, to get a subtotal. So far, so good. It adds perfectly. I then get this subtotal value and multiply it by 2.35 to give it a total. It works great as long as the subtotal is under 1000. I don't know why it doesn't work. This is the part of the code where it doesn't work as I would like it to. All this is supposed to do is give the value of dollars in a foreign coin.
echo 'Dollars:$'.$totalamount."<br>";//this works
$totalamount = $totalamount * 2.35;
$totalamount = number_format($totalamount, 2);
echo 'Reais:$'.$totalamount.'<br>';
Any help would be greatly appreciated