Greetings,
Opensource projects or common libraries never help you on some specific
problems.
Implement it by yourself would be a good way...and it'll be fully controlled by
yourself.
Happy Programming!
-Victor
>From : "Scot Mcphee" <[EMAIL PROTECTED]> on 04/09/2002 07:11:22 PM
To: [EMAIL PROTECTED]
cc: (bcc: Victor HT CHEUNG/HD/HKSARG)
Subject: [jdjlist] numbers for currencies
In our application we deal extensively with currencies. Due to a number of
existing and upcoming requirements, which are A) require display in
part-cents as some Securities trade in increment amounts like $0.0005 (yes
1/20th of a cent) and B) Foreign exchange trading (ditto), I am considering
implementing a Currency class or interface. I know jdk 1.4 has
java.util.Currency but using 1.4 is not suitable for us right now. Also from
looking at it a little (the Javadoc) it doesn't appear suitable for
part-cents display or manipulation. Every other example or discussion I've
looked always assumes that the minor unit is indivisible (which, in the
world of high finance, is most certainly NOT the case!).
Essentially I have been thinking of a Currency class which knows its locale
and therefore can handle things like forex, part-cents and the like on a
locale and price dependant way. There are many variables; it's not something
simple like buying Coffee with your spare change or purchasing something
online with a credit card!!!
Can anyone point me to some good resources or discussion for handling
currencies in Java, for proper financial applications. It would be highly
appreciated.
thanks,
scot.
___________________________________________
Scot Mcphee - Snr Developer
- (mobile) +61-412-957414
___________________________________________
Tigerex - http://www.tigerex.net
- (bus) +61-2-82593613
___________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm
-----------------------------
Disclaimer: This email (including every file transmitted with it) may contain
confidential and privileged information and is solely for the use of the intended
recipient(s). Any unauthorised dissemination, distribution or copying of this email
is strictly prohibited. Please notify the sender and delete this email immediately if
you have received this by mistake. We do not accept liability arising from email
transmitted by mistake.
To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm