From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c872b4c479fe6a9b X-Google-Attributes: gid103376,public From: "Marin D. Condic" Subject: Re: financial computations Date: 2000/05/09 Message-ID: <39188680.ECE27C06@quadruscorp.com>#1/1 X-Deja-AN: 621227647 Content-Transfer-Encoding: 7bit References: <391725AA.4F68ED72@gmx.de> <39182D26.F4FDB0F8@quadruscorp.com> <8f93qg$1g9$1@nnrp1.deja.com> Organization: Quadrus Corporation X-Sender: "Marin D. Condic" (Unverified) X-Server-Date: 9 May 2000 18:46:13 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-05-09T18:46:13+00:00 List-Id: Robert Dewar wrote: > What artithmetic do you use in these functions? Take a look and see. Most stuff is done with decimal types, but some computations take floating point. (Generic parameters, of course.) There's places where it makes sense. > Note that the use of floating-point for many financial > computations, e.g. interest rate calculations for many > instruments, is illegal. > Goodness! The Software Police are going to come get me now! Where can I hide? :-) I make no claims as to the appropriateness or fitness for a given purpose any of the stuff I've put out there may have. If there are legal requirements that must be satisfied for what you are implementing, then I guess you need to make sure you satisfy them. My code might serve as an example of how the computations should be done. I suppose I should put some disclaimer, etc. on that web page. Maybe even some licensing stuff. But so few people seem to be using any of it that I have not bothered. BTW: If you look over the computations and have suggestions for improvements, feel free to send them to me. MDC -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "I'd trade it all for just a little more" -- Charles Montgomery Burns, [4F10] ======================================================================