Skip to main content
This revision made August 01, 2012 13:20, by keilw

Java Currency and Money API Wiki

Target markets
Scope
Design Principles
Precision
Requirements
Implementation notes
Use Cases

Joda Money can be referred to as a useful guide for API and design style. it is based on real-world use cases in an e-commerce application for airlines
(must be from a small or US airline, as there is no currency conversion;-) Note from Joda author Stephen Colebourne - my current company wants estimated amounts at high performance, so uses double directly

Caveat Emptor

  • This JSR will not satisfy everyone
  • Goal is 80% of use cases for the 9+ million JVM developers

External Links
M-Pesa-Mobile Money in Africa
Grails Currencies
Why not to use BigDecimal for Money
ICU4J
Currency Internationalization (i18n), Multiple Currencies and Foreign Exchange (FX).
http://en.wikipedia.org/wiki/Japanese_units_of_measurement#Money
Discussion of internationalization of currencies, rounding, grouping and formatting, separators etc]
http://speleotrove.com/decimal/http://sourceforge.net/projects/oquote/ Speaking of Insurance, one of my UK colleagues here at Maersk is co-contributor to this SF project: It has an interesting Currency and CurrencyAmount structure in it, too. Maybe a good inspiration, and given it is aimed at the UK and International Insurance industry, it sounds like a welcome project to get in touch with. Contains specifications for decimal floating point arithmetic-Werner Keil
Karatsuba Algorithm for Fast Big Decimal Multiplication

Related Initiatives
Eric Evans Time and Money Library

Difference compared to previous revision
[[implementation|Implementation notes]]
[[usecases|Use Cases]]
[http://joda-money.sourceforge.net/ Joda Money] can be referred to as a useful guide for API and design style. it is based on real-world use cases in an e-commerce application for airlines
(must be from a small or US airline, as there is no currency conversion;-) Note from Joda author Stephen Colebourne - my current company wants estimated amounts at high performance, so uses double directly Caveat Emptor
 
 
Close
loading
Please Confirm
Close