Forums / Setup & design / How to combine arithmetic operators

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How to combine arithmetic operators

Author Message

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.