M
M
mrpotapov892020-09-24 11:16:20
MODX
mrpotapov89, 2020-09-24 11:16:20

Why does ModX count tv incorrectly?

In the template, I calculate the price.
0
where VhodCenaZabor = 58
58*0.0385 = 2.233
2.233 * 1.6 = 3.5728
but for some reason modx displays the result 3.2
2.233 for some reason it rounds up to 2 during the last action, why? Tell me please. Is there an alternative calculation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danny Arty, 2020-09-24
@mrpotapov89

I tried it on my site - everything is correct. Maybe your TV value is not 58, but 51.94?) Or in the TV settings there is a ban on decimal numbers and rounding is incorrect
5f6c642d9e038191604116.png
5f6c64324b02e566384404.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question