question

liju avatar image
liju asked liju commented

Rounding off order amounts and tax amounts

Does clover use "bankers rounding" aka "round to nearest even" or just the regular round up , on order amounts, totals and taxes in its calculations?

And is it done on the cent amounts or after converting to dollar amounts?

Please shed some light on this.

Regards

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jacob Abrams avatar image
Jacob Abrams answered liju commented

We use what Java calls "half up" rounding: http://docs.oracle.com/javase/7/docs/... our calculations are performed on amounts that are in cents. You may want to try running a Java decompiler such as http://jd.benow.ca/ on our https://github.com/clover/clover-andr... to see all the gory details.

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

liju avatar image liju commented ·

Thanks Jacob for the clarification

0 Likes 0 ·

Welcome to the
Clover Developer Community