Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8
    • Labels:
      None

      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.

        Activity

        Hide
        chrispheby added a comment -

        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.

        Show
        chrispheby added a comment - 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.
        Hide
        atsticks added a comment -

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

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

          People

          • Assignee:
            atsticks
            Reporter:
            atsticks
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: