How to get rounding of multi currency rate?

The JS object window.Shopify.currency.rate is showing the incorrect rate, and I don’t see any way to get the real rate in the frontend.

A real-world example:

window.Shopify.currency.rate is returning 0.86456832

Accordingly, with this rate, the price of a product that costs 99.99 should be 86.44

But the price on the product page is showing 86.95, cause the shop setup round to 0.95 to this currency, so how to get these rules?

As you can see, the rate of window.Shopify.currency.rate is totally wrong when you used multi currency.

2 Likes