News for hackers. Stuff that matters.
Re:Ask HN: Currency rounding rules by saluki on Saturday October 08, 2016 @08:39AM (#12666756)
We ran in to this on a project recently involving line item currency calculations that were coming up off by pennies vs what the API was calculating.

We were directed to use HALF_UP rounding to two decimal places for each calculation.

https://docs.oracle.com/javase/7/docs/api/java/math/Rounding...

There are no comments on this comment yet.