V
V
viktorross2019-05-15 15:35:40
Smarty
viktorross, 2019-05-15 15:35:40

Division in smarty?

Hello, please tell me how to properly divide in this case. It is
necessary that $v.price_curr be without spaces and be divided by $v.no_days, and the number that will turn out in the end should not be longer than 4 characters |truncate:4:""
how to do it all ?
{$v.price_curr|replace:' ':''/$v.no_days}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid, 2019-05-15
@caballero

it is necessary to divide and format before the template engine - its task is to display and show

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question