Re: [PHP] smary assign var

2010-11-19 Thread Tontonq Tontonq
i solved so {assign var='yuzde' value=$product.reduction*100} {assign var='yuzde' value=$yuzde/$product.price_without_reduction} -{$yuzde|round:0}% 2010/11/19 > Taking what I understand from C, I think you are looking for this > equivalent > in php. > > $product = array('reduction'=>'4','pr

RE: [PHP] smary assign var

2010-11-19 Thread Steve Staples
On Thu, 2010-11-18 at 22:08 -0500, ad...@buskirkgraphics.com wrote: > Taking what I understand from C, I think you are looking for this equivalent > in php. > > $product = array('reduction'=>'4','price_without_reduction'=>'22','price > '=>'18') > $yuzde = $product['reduction']*100; > $yuzde = roun

RE: [PHP] smary assign var

2010-11-18 Thread admin
Taking what I understand from C, I think you are looking for this equivalent in php. $product = array('reduction'=>'4','price_without_reduction'=>'22','price '=>'18') $yuzde = $product['reduction']*100; $yuzde = round($yuzde / $product['price_without_reduction']); Echo $yuzde; This is no reason

Re: [PHP] smary assign var

2010-11-18 Thread Ashley Sheridan
On Fri, 2010-11-19 at 00:59 +0100, Tontonq Tontonq wrote: > hi guys > i have 2x sub value > > [reduction] => 4 > [price_without_reduction] => 22 > [price] => 18 > > and i want to calculate how much i did reduction percent > > {assign var='yuzde' value=$product.reduction*100} > {assign var='yuzd