|
-
Feb 15th, 2026, 08:05 PM
#1
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
-
Feb 16th, 2026, 09:40 AM
#2
Re: Can VB6 simulate high-precision math calculations like a 64-bit app?
 Originally Posted by SearchingDataOnly
Thank you for the information, Elroy.
I need to calculate numbers with 62 decimal places.
Code:
Const PI = 3.14159265358979323846264338327950288419716939937510582097494459
You need to search for a library that will handle IEEE binary256. That will give you approximately 71 decimal digits of precision. And there are some libraries out there with software implementations of this. But I'll let you find them, as you should be doing these searches yourself anyway.
I'm quite confident you'll find a library that can be executed on a Windows 32 bit machine. And VB6 can be configured to make just about any kind of API call you run into.
Any software I post in these forums written by me is provided "AS IS" without warranty of any kind, expressed or implied, and permission is hereby granted, free of charge and without restriction, to any person obtaining a copy. To all, peace and happiness.
-
Feb 16th, 2026, 10:36 PM
#3
Thread Starter
Frenzied Member
Re: Can VB6 simulate high-precision math calculations like a 64-bit app?
 Originally Posted by Elroy
You need to search for a library that will handle IEEE binary256. That will give you approximately 71 decimal digits of precision. And there are some libraries out there with software implementations of this. But I'll let you find them, as you should be doing these searches yourself anyway.
I'm quite confident you'll find a library that can be executed on a Windows 32 bit machine. And VB6 can be configured to make just about any kind of API call you run into.
Since Google was banned in China in 2009, it has become somewhat difficult to search for information online.
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
|