Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to calculate with more precision

Status
Not open for further replies.

Olaf Doschke

Programmer
Oct 13, 2004
14,847
DE
I just posted faq184-7862

At the end of thread184-1738764 I said I work on a string math library, that took a while because it wasn't main focus and also I needed a bit more debugging on the divide operation.

The last sample of the FAQ code covers the famous case of thread184-1738661.

I'd be glad, if you stress test this and find bugs. If it's somehow useful to you, still be cautious it doesn't come with a warranty. You might contact me for generating a more stable lib with perhaps more functionality and performance tuning, too.

Bye, Olaf.
 
Thank you.

I was pointed to UT, Hilmar Zonneveld has "Math Unlimited" Download there. ID:10044
It already offers many more methods, even trigonometrical functions.

I'll see, if I combine this with my ideas. He uses strings like I do, but during calculations digits are represented by array elements, good thought at least for more complex calculations, that process the same number multiple times it can pay to split the string into an array and finally combine the array to a string.

This library is from 2002 and since the 65000 element limitation of arrays was dropped in VFP9 it can handle even larger numbers today without any change.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top