Results 1 to 30 of 30

Thread: [RESOLVED] Can VB6 simulate high-precision math calculations like a 64-bit app?

Hybrid View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2020
    Posts
    1,844

    Re: Can VB6 simulate high-precision math calculations like a 64-bit app?

    Quote Originally Posted by Elroy View Post
    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

  2. #2
    PowerPoster Elroy's Avatar
    Join Date
    Jun 2014
    Location
    Near Nashville TN
    Posts
    10,914

    Re: Can VB6 simulate high-precision math calculations like a 64-bit app?

    Quote Originally Posted by SearchingDataOnly View Post
    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.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2020
    Posts
    1,844

    Re: Can VB6 simulate high-precision math calculations like a 64-bit app?

    Quote Originally Posted by Elroy View Post
    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
  •  



Click Here to Expand Forum to Full Width