Calculations Needing Big Integers....
#11
If you have to compute factorial or Fibonnaci or something like that you're out of luck strictly within QB64's world, because the values get very large very quickly...

But if you have to do something up to 18 digits of precision, and even if you have to cheat a bit with the decimal point, then _INTEGER64 is good enough. Granted that in Microsoft BASIC PDS v7.1 the CURRENCY type was a LONG internally, but a special case was made whenever it was printed. Something like that could be arranged for _INTEGER64 to get a rational "precise" 6-digit mantissa or something like that.

I remembered a while ago before 64-bit OS became all the rage, that somebody invented a "longlongs" structure in C to have 64-bit integers. Maybe that old code could be brought back so we could have 128-bit integers LOL.
Reply


Messages In This Thread
RE: Calculations Needing Big Integers.... - by mnrvovrfc - 07-09-2023, 06:46 PM



Users browsing this thread: 1 Guest(s)