Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding and Subtracting large numbers
Message
From
25/09/2019 11:14:25
 
 
To
25/09/2019 10:54:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01671113
Message ID:
01671116
Views:
64
>>I am struggling implementing a code that would be able to add large numbers. Basically it is working, I am using the Math_unlimited.vcx from the download section. However once the result would be negative it gives wrong results. I would need to rewrite the code, but I was wondering if someone has a better code for this, or perhaps even an fll solution that could be used instead?
>
>How big of numbers do you need?
>
>I wrote an open source arbitrary precision math library that used MPFR several years ago in C/C++. It could be ported to an FLL with little difficulty. It provided basic trig functions, exponents, roots, etc.
>
>UPDATE: In fact, in thinking about it, I think I wrote a VFP wrapper at one point. Hmm...

I have numbers that come close to 20 digits, no decimals, but could get negative. Actually it's for calculating hash codes for bank files, which is a relatively general task.
Christian Isberner
Software Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform