The MASM Forum

Miscellaneous => Miscellaneous Projects => Topic started by: iZ! on April 06, 2023, 09:04:34 PM

Title: Broad Data Type (large numbers)
Post by: iZ! on April 06, 2023, 09:04:34 PM
Please test out my new chained balanced number calc API:
https://github.com/SilverfoxSystems/BroadLib/

In VB.NET + x64 native dll (built with MASM, of course)...

The output of the example:

The first operation's

For i = 0 To 6100
   a.Multiply(5000001)
Next

result after multiplying number 1 by 5000001 6101 time (mathematically, this equals to 50000016101) gives us:


+25164886e+2121
+1422148752185721623e+2120
+6963071817127141528e+2119
-1253503209065829446e+2118
-2720155040703081208e+2117
-6139238349445607654e+2116
+659240562815459102e+2115
+ ...


Keep in mind that e+2121 means (264)2121


The second operation


For i = 0 To 6100
   a.Divide(5000001)
Next



produces the resulting value back to 1 -> a(0) = 1

If we divide again, that is, perform the above operation again (6101 time divide 1 by 5000001), we get the following result:


+733035071854e-2122
-8347354123734555380e-2123
+130731725961279415e-2124
-6132637542230523750e-2125
+8288682421849758113e-2126
+4228682366386341133e-2127
+2189847801768379705e-2128
+ ...



Title: Re: Broad Data Type (large numbers)
Post by: iZ! on May 03, 2023, 06:56:57 AM
I guess I take pleasure from reinventing the wheel  :smiley: Kindly see the updated post above.
Title: zip file issue solved
Post by: iZ! on May 04, 2023, 03:00:13 AM
If anyone downloaded the zip file from the link given on GitHub prior to the last update, the zip file might've been corrupt. The server code I've written was increasing the first QWord in the zip file instead of in the download counter   :smiley:
Title: Re: Broad Data Type (large numbers)
Post by: iZ! on June 23, 2023, 05:17:21 AM
Nobody wants to test out my supercalc :(((((((
Title: Re: Broad Data Type (large numbers)
Post by: zedd151 on June 23, 2023, 05:30:51 AM
Quote from: i Z ! on June 23, 2023, 05:17:21 AM
Nobody wants to test out my supercalc :(((((((
I would take it for a 'test drive' but I'm only running with half a tank (32 bit OS).  :tongue:
Title: Re: Broad Data Type (large numbers)
Post by: iZ! on June 23, 2023, 05:59:02 AM
Quote from: zedd151 on June 23, 2023, 05:30:51 AM
I would take it for a 'test drive' but I'm only running with half a tank (32 bit OS).  :tongue:

:biggrin:
Title: Re: Broad Data Type (large numbers)
Post by: HSE on June 23, 2023, 06:41:28 AM
Quote from: i Z ! on June 23, 2023, 05:17:21 AM
Nobody wants to test out my supercalc :(((((((

There are no assembly files.
Title: Re: Broad Data Type (large numbers)
Post by: iZ! on June 23, 2023, 02:34:03 PM
Quote from: HSE on June 23, 2023, 06:41:28 AM
There are no assembly files.

http://izi.wtf/broadops/download.aspx
Title: Re: Broad Data Type (large numbers)
Post by: jj2007 on June 23, 2023, 06:22:07 PM
Quote from: i Z ! on June 23, 2023, 02:34:03 PM
Quote from: HSE on June 23, 2023, 06:41:28 AM
There are no assembly files.

http://izi.wtf/broadops/download.aspx

Still no assembly files, but an email :thumbsup:

I've seen .com, .org, .it, .info and many others, but .wtf was new to me, wow :eusa_dance:
Title: Re: Broad Data Type (large numbers)
Post by: iZ! on June 24, 2023, 12:51:11 AM
Quote from: jj2007 on June 23, 2023, 06:22:07 PM

Still no assembly files, but an email :thumbsup:

I've seen .com, .org, .it, .info and many others, but .wtf was new to me, wow :eusa_dance:

yeah, the zip file contains a .dll which needs to be placed into the VS solution (with option "Copy to output dir" enabled). The asm code isn't open source.

I think I grabbed that domain shortly after .wtf's became available for few quid, but prolongation for next year is over 30€