Re: [PHP] smary assign var

2010-11-19 Thread Tontonq Tontonq
t; > > -----Original Message- > From: Tontonq Tontonq [mailto:root...@gmail.com] > Sent: Thursday, November 18, 2010 6:59 PM > To: PHP General Mailing List > Subject: [PHP] smary assign var > > hi guys > i have 2x sub value > > [reducti

RE: [PHP] smary assign var

2010-11-19 Thread Steve Staples
t suggest you read > http://www.php.net/manual/en/function.round.php > for a better understand the precision options with round. > > > > > Richard L. Buskirk > > > -Original Message- > From: Tontonq Tontonq [mailto:root...@gmail.com] >

RE: [PHP] smary assign var

2010-11-18 Thread admin
d L. Buskirk -Original Message- From: Tontonq Tontonq [mailto:root...@gmail.com] Sent: Thursday, November 18, 2010 6:59 PM To: PHP General Mailing List Subject: [PHP] smary assign var hi guys i have 2x sub value [reduction] => 4 [price_without_reduction] => 22 [price] => 18 and

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

[PHP] smary assign var

2010-11-18 Thread Tontonq Tontonq
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='yuzde' value=$yuzde/$product.price_without_reduction} -{$yuzde|truncate:3:''|escape: