[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] 3 decimal places with discount tag


On Mon, 31 Jan 2005 14:10:41 -0600, Joshua Lavin
<suppressed> wrote:
> Our perl tag code for the discount is:
> 
> $Session->{discount}{ALL_ITEMS} = '$s * ' . $discount;
> 

You could try

$Session->{discount}{ALL_ITEMS} = 'sprintf("%.2f", $s * ' . $discount . ')';

Jeff
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.