|
-
Feb 15th, 2026, 08:05 PM
#7
Thread Starter
Frenzied Member
Re: Can VB6 simulate high-precision math calculations like a 64-bit app?
 Originally Posted by Elroy
https://www.mingw-w64.org/ (see __float128)
https://github.com/ucb-bar/berkeley-softfloat-3 (see binary128)
Either of those should do the trick, as they both implement the IEEE 754 (128 bit) floats, and have versions that run on 32-bit Windows. However, you'll probably need to pass a string or a UDT to them to get/receive the 128 bit numbers. And printing them is yet another problem, but those libraries may have a function for creating ASCII formatted strings out of them as well.
Not sure how much precision you're looking for, but computers are ALWAYS limited in precisions based on how much memory you allow for your numbers. And the bitness of the OS really has very little to do with it. That's just a measure of the hardware memory-to-CPU bus size. If the CPU is moving more memory than the bus size, it just takes several 'swipes'.
Thank you for the information, Elroy.
I need to calculate numbers with 62 decimal places.
Code:
Const PI = 3.14159265358979323846264338327950288419716939937510582097494459
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|