[ quantlib-Feature Requests-824364 ] The Real typedef should be used throughout

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ quantlib-Feature Requests-824364 ] The Real typedef should be used throughout

SourceForge.net
Feature Requests item #824364, was opened at 2003-10-15 13:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=362740&aid=824364&group_id=12740

Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Dann Corbit (danncorbit)
Assigned to: Nobody/Anonymous (nobody)
Summary: The Real typedef should be used throughout

Initial Comment:
You have a typedef of real like so:

typedef double Real;

but throughout the code, you use ordinary doubles all
over the place.  Hence, the typedef is basically useless.

If (on the other hand) throughout the code you used
Real parameters and Real automatic variables, then I
would be able to use the system with other data types
such as Moshier's Qfloat, Scott's MIRACL, etc. by making
my own typedef as follows:

typedef qfloat Real;

or similar to that.

We need to compute with 100 digits of accuracy, so a
double simply won't do.


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=362740&aid=824364&group_id=12740