You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use variables (template variables, template partials, low variables) & exp:tags (like stash) as number values to do calculations on
eg: {exp:mx_calc expression="{grid_field:numbers_column} * {template_variable} + {exp:stash:get:value} / {template_partial}"} where the variables are numeric values
support parse='inward' for above example
be able to set the number of decimals
eg via a parameter: decimals='2'
be able to force decimals if round number
eg via parameter: force_zeros='yes'
set decimals separator: decimal_seperator=','
set thousands separator: thousand_seperator='.'
The text was updated successfully, but these errors were encountered:
is no magic solution here due to EE parsing order. It would be needed still play with tag order templates. But MX Calc v. 3.0.5 now has variables and a late parsing option, which should help to build more flexible solutions. I will do extra R&D for future versions.
It was not documented (my bad), but it was always possible to do a number format
I would like to request some features:
{exp:mx_calc expression="{grid_field:numbers_column} * {template_variable} + {exp:stash:get:value} / {template_partial}"}
where the variables are numeric valuesparse='inward'
for above exampledecimals='2'
force_zeros='yes'
decimal_seperator=','
thousand_seperator='.'
The text was updated successfully, but these errors were encountered: