>> I'm afraid I can't help you on the actual question of this thread. 
>But I do 
>> want to encourage you to continue in your math programming in Delphi 2.
>> 
>
>I am really encouraged by this. Even before yours and Martin's
>comments, I was intuiting the Delphi was delivering often 18-digit and
>at least 17  digit precision in cirmumstances where the analogous code
>in BC++ (albeit an older version) didn't seem to get quite so close
>with the long double type in the last couple of digits, though
>admittedly the results were still not bad, especially when compared to
>MSVC++ which doesn't even seem to support the long double type and
>gives only 16 good digits if one is lucky. I should note that I
>started these meanderings with VB4 which has at best a 15-digit double
>type, though the interface is so user friendly and the coding so
>forgiving. Upgrading to VB6 courtesy of a good ebay deal with the
>hopes of greater precision through the CDec typing hasn't come to
>fruition, since the Decimal type, which is really an integer I
>believe, was never fully implemented.
>
>FYI, I have downloaded the BCD20 high precision package, but I must
>admit the high end C++ coding is so inscrutable to my amateur eyeballs
>that I have no idea whether I could use the routines in my bush league
>C/C++ explorations, expecially since my compliers are pretty ancient.
>That said, it would be so sweet to learn how to code some high
>precision routines and compile them to a DLL for export to Delphi
>programs. Of course, this may not be so easy to do, giving issues of
>type compatiblity.
>
>Thank you so much for your feedback. Since my D2 code to date gives
>desired results on most computers I have tried except my main
>computer, the lesson to be learned is that I may have to used another
>computer if I want to see the best results, and when I shop for a new
>computer I should be sure to take one or two little Delphi programs on
>a flash card to test whether the processor interacts with my Delphi
>work in the fashion I desire to see.
>
>Les

Les,

I still use D2 extensively for both command line and GUI Win32 programs.
I prefer to use the Windows API directly and have not seen anything that
I need in newer versions. From what I understand, the newer versions
produce larger and slower EXE's than D2.

Another thing you might want to consider is an arbitrary precision math
library. I used to do a lot of LISP programming years ago, and one of the
unusual features in LISP is built-in arbitrary precision math. Most
implementations are limited only by the available RAM. I haven't seen any
specifically for Delphi, but I have seen many for C++. All you would need
is to write a simple wrapper for the arbitrary precision functions in C++ to
a DLL that passes the numbers as null-terminated strings in both directions.
This would obviously impact performance compared with executing directly
on the FPU, but it sounds like you are primarily concerned with precision.

Glenn Lawler
www.incodesystems.com



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/i7folB/TM
--------------------------------------------------------------------~-> 

-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to