A client just contacted me because a custom discount module generated a price of $1.64. The actual price was $1.645, and the VM rounded down instead of up, because it's hard-coded to use banker's rounding.
I guess bankers use this because of situations like computing interest on an account, where they multiply the balance by a very small number, again and again over many years. In a situation like that, the rounding errors could eventually add up to a non-trivial amount. But of course, most Miva users never do that.
Some years ago, Miva added a setting to the State Tax module to select normal rounding. But the store still uses banker's rounding for everything else. Is there a way to change that? If not, maybe it's time to add one? I think so. The problem has come up in the forums a number of times.
Do all the built-in discount modules use banker's rounding? If so, there may be a lot of stores generating these errors, and the users just never noticed, or shrugged it off.
Just one man's opinion ... Thanks --
I guess bankers use this because of situations like computing interest on an account, where they multiply the balance by a very small number, again and again over many years. In a situation like that, the rounding errors could eventually add up to a non-trivial amount. But of course, most Miva users never do that.
Some years ago, Miva added a setting to the State Tax module to select normal rounding. But the store still uses banker's rounding for everything else. Is there a way to change that? If not, maybe it's time to add one? I think so. The problem has come up in the forums a number of times.
Do all the built-in discount modules use banker's rounding? If so, there may be a lot of stores generating these errors, and the users just never noticed, or shrugged it off.
Just one man's opinion ... Thanks --
Comment