Forum Moderators: coopster
Unfortunatly in some cases there seems to be 1 cent deviation.
We store the rate between Euro and other currencies in our database as decimal(8,4).
I am Euro-ignorant, is there a reason you need this?
We store the rate between Euro and other currencies in our database as decimal(8,4).
Because if you can round that off before it gets stored and store it as 8,2, it's likely to go away.
EUR ---- RATE ---- GBP
32.44 * 0.878550 = 28.98
32.44 * 0.8786 = 28.99 (0.01 out)
32.44 * 0.88 = 29.04 (0.06 out)
- First page: calculation of basic price in euro -> show price in selected currency -> submit euro price in next page if the product is selected
- Second page: loads basic price in euro from database -> show price in selected currency