It would be best to round to the closest penny, actually, since that's what the calculation for the shopping cart does.
Go to
http://www.morecomics.net and add the item that is normally $2.95 to your cart and you'll see what I mean. It is displyed on the page as $2.06, but the price displayed in the cart area is $2.07.
Here is the code that I am currently using:
Code:
<font class=ProductPrice>{$lng.lbl_our_price}: <s>{include file="currency.tpl" value=$products[product].price}</s> {math equation="price*0.7" price=$products[product].price discount=$products[product].discount assign=unformatted}{include file="currency.tpl" value=$unformatted}</font>
When I tried using the code that is mention at
http://smarty.php.net/manual/en/language.modifier.string.format.php - {$number|string_format:"%.2f"} all I got were values like this:
$2.26
$7.20
That is, everything had "2" in the first place after the decimal point.
I'm getting puzzled here!