[JAVAMONEY-19] Support for regional Rounding Rules Created: 01/Feb/13  Updated: 10/Mar/14  Resolved: 10/Mar/14

Status: Closed
Project: javamoney
Component/s: API, Impl: RI, Spec: Specification
Affects Version/s: None
Fix Version/s: 0.8

Type: New Feature Priority: Major
Reporter: atsticks Assignee: atsticks
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Support for regional and custom rounding rules is provided:

  • Roundings that are defined by a CurrencyUnit, refer also to the Unicode standard.
  • Support for arbitrary roundings defined by use cases.
  • Providing a comprehensive API/SPI for Rounding and according accessor methods.
  • Ensure interoperability with rounding as defined by java.math.


 Comments   
Comment by chrispheby [ 05/Feb/13 ]

Couple of use cases:

In Singapore, 1 cent coins are no longer being produced although they remain in circulation. As a result I have never seen one. Retailers round cash (but not card transactions) to the nearest 5 cents. I believe Canada is in the process of doing this the same move currently.

In Saudi Arabia, some retailers round up to the nearest riyal, with the difference forming a charitable donation.

Comment by atsticks [ 10/Mar/14 ]

MonetaryRoundings allows to pass a MonetaryContext that may contain any additional Parameters required. So this Feature is fully covered by the current API.

Generated at Wed Aug 31 15:12:31 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.