View Single Post
  #12  
Old 04-08-2003, 12:35 PM
 
Jason Brice Jason Brice is offline
 

Advanced Member
  
Join Date: Mar 2003
Location: Christchurch, New Zealand
Posts: 42
 

Default

format="%d.00" seems to round to the nearest dollar...

format="%.2f" is better but it truncates the string in stead of rounding it, so for 30% off 2.95 we are displayed $2.06 in the product window, but it is $2.07 when it's added to the cart because the actual price of $2.0666* is round up.

format acts on the numeric as if it is a string.
Reply With Quote