Forums / Setup & design / How to combine arithmetic operators
esperion H
Friday 09 December 2005 8:25:31 am
{$product_item.price_inc_vat|l10n(currency)}
I want to both multiply the value output from this variable and use the "round" operator.
How can that be done?
Paul Forsyth
Friday 09 December 2005 12:43:46 pm
Try:
{mul($product_item.price_inc_vat|l10n(currency), $multiplication_number)|round}
or
{mul($product_item.price_inc_vat|l10n(currency)|round, $multiplication_number)}
depending on your need.