Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jcabi-cash #131

Open
yegor256 opened this issue Feb 3, 2013 · 3 comments
Open

jcabi-cash #131

yegor256 opened this issue Feb 3, 2013 · 3 comments

Comments

@yegor256
Copy link
Member

yegor256 commented Feb 3, 2013

Let's introduce jcabi-cash with com.jcabi.cash.Cash class for multi-currency monetary values:

Cash cash = new Cash("USD 120.50")
  .precision(3) // three digits after dot, instead of default two
  .add(new Cash("EUR 19.00"))
  .exchange(Currency.GBP)
  .mul(2.5f);

It should also support Locale.

@yegor256
Copy link
Member Author

yegor256 commented Feb 3, 2013

Similar library: http://joda-money.sourceforge.net/. The main problem with joda library is that it doesn't support multiple currencies in one monetary value.

@yegor256
Copy link
Member Author

yegor256 commented Feb 3, 2013

We should also support exchange rate providers, like Google Currency Converter

@yegor256
Copy link
Member Author

keep in mind: http://jcp.org/en/jsr/detail?id=354

@ghost ghost assigned yegor256 Apr 20, 2013
@yegor256 yegor256 removed their assignment Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant