I am currently using a php based shopping cart program.
Unfortunately when adding 20% vat, it rounds up the gross price to whole number. For example if the net price is £10.83 it rounds up to £13.00 when I need it to be £12.99.
The line of code that outputs the figure is below.
[php]<?php echo money($calcrate * $product["price_low"],'local'); ?>[/php]
What I am trying to do is wrap the money function within a separate function that will detect a certain number (13.00) and then deduct 0.01 to give me the correct figure.
Can anyone help me with this?