I
I
Ivan Antonov2016-05-19 17:35:47
CMS
Ivan Antonov, 2016-05-19 17:35:47

Rounding prices to the hundreds?

Hello
Is it possible to round up the price indicated in dollars when converting to rubles on the site, do not violate the standard CMS logic?
Example:
When we indicate the price - $ 449 on the site when choosing the ruble currency - 29185 rubles. (at the rate of 65 rubles per dollar), but you need to round this figure - 29200 rubles.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
web-mechanic, 2016-05-20
@amfetamine

Realistically, this is not a problem. But it is unlikely that someone will tell you something specific without additional information. Try using the round function with appropriate parameters php.net/manual/ru/function.round.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question