3 ms·
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 d
by saluki 10y ago
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/RoundingMode.html https://docs.oracle.com/javase/7/docs/api/java/math/Rounding...