Search found 41 matches

by storm5510
Jan 15, 2020 18:03
Forum: General
Topic: Sorting Numbers As Strings
Replies: 8
Views: 303

Sorting Numbers As Strings

I have a text file composed of numbers in the format below. I can bring these into a single-dimension array using "Line Input #." The issue is the gap between. I cannot sort these numerically. I could replace the space with a comma using a "Mid" statement. Doing this would requir...
by storm5510
Jan 06, 2020 1:36
Forum: Libraries
Topic: Library Pointers & OS Crashes
Replies: 11
Views: 473

Re: Library Pointers & OS Crashes

srvaldez doesn't mean you need a virtual machine. But virtual machines are good for testing since you can install different operating system versions to see how they work. All he meant was it worked when he used the 64-bit version of FB on his 64-bit Windows 7 installation, which happens to be in a...
by storm5510
Jan 05, 2020 23:42
Forum: Libraries
Topic: Library Pointers & OS Crashes
Replies: 11
Views: 473

Re: Library Pointers & OS Crashes

FB comes in 32-bit and 64-bit versions I tried to cover all possible issues but I can't see what's going on your PC's, it works fine here on a Windows 7 x64 VM VM is Virtual Machine. I just looked this up. it is an add-on which I do not have on my HP. I found it on the MS website and downloaded the...
by storm5510
Jan 05, 2020 17:48
Forum: Libraries
Topic: Library Pointers & OS Crashes
Replies: 11
Views: 473

Re: Library Pointers & OS Crashes

@storm5510 I think that we may have a misunderstanding of terms, when you say that the program crashes at mpz_init(@p) does that mean that the program successfully compiled (without your commenting-out) and then crashed when you run the executable? or do you get errors when trying to compile the pr...
by storm5510
Jan 05, 2020 5:01
Forum: Libraries
Topic: Library Pointers & OS Crashes
Replies: 11
Views: 473

Re: Library Pointers & OS Crashes

Here are some functions for gmp for you to test. The first instance of __mpz_struct is in factorial. The max output length string is 10000000. If you need more then goto line 421 to reset. Line 421 of which file? I don't recall seeing a name in your sample. I wonder why a fix length string? I have ...
by storm5510
Jan 05, 2020 0:18
Forum: Libraries
Topic: Library Pointers & OS Crashes
Replies: 11
Views: 473

Library Pointers & OS Crashes

I have a program which a member here, whom I shall not name, offered to modify it to increase its performance. He used the GMP libraries. The performance increase was incredible. Here is the caveat. The new program runs excellently on my Windows 10 Pro x64 system. If I try to run it on my Windows 7 ...
by storm5510
Dec 29, 2019 13:18
Forum: Beginners
Topic: Calculating a Percentage from Large Numbers
Replies: 3
Views: 170

Re: Calculating a Percentage from Large Numbers

how about percent = cdbl(a * 10000 / b) / 10000 Thanks. It is the "/" operator I am having problems with. My example above is extremely small. A more fitting example would be something like 1180591620717411303424 / 162259276829213363391578010288128. Some may wonder about my interest in su...
by storm5510
Dec 29, 2019 1:06
Forum: Beginners
Topic: Calculating a Percentage from Large Numbers
Replies: 3
Views: 170

Calculating a Percentage from Large Numbers

I have a program which attempts to calculate a percentage and assign it to a double precision number: #include "big_int.bi" dim as bigint a dim as bigint b dim as double percent As an example, I will say "a" is 1255 and "b" is 19057. percent = cdbl(a / b) The line above...
by storm5510
Dec 29, 2019 0:38
Forum: Beginners
Topic: Configurable source code beautifier for FB
Replies: 10
Views: 2104

Re: Configurable source code beautifier for FB

It would be of great assistance if there was an IDE something like what VB6 or .Net has. If I could step through a program, one line at a time and see the results, it would be most helpful. The current editors do not catch anything which is not an error, but simply does not work, or work properly.
by storm5510
Dec 28, 2019 0:00
Forum: General
Topic: Date & Time Compression
Replies: 10
Views: 294

Re: Date & Time Compression

I thank you all for your replies. After I posted this, I realized it would need to be readable as it appeared. So, I decided to simply pick parts of Date and Time and string them together into what looks like a number. They pad zero's where needed to keep a fixed length. So, 01-07-2020 18:48:19 woul...
by storm5510
Dec 27, 2019 18:38
Forum: General
Topic: Date & Time Compression
Replies: 10
Views: 294

Date & Time Compression

I think this would be a brain-bender for just about anyone. I would like to find a way to take the numeric elements from Date and Time and and compress them into a Long data type. Then, a series of mod functions performed in a specific order could decode it. It would be done in this order: year, mon...
by storm5510
Dec 25, 2019 15:49
Forum: General
Topic: Functions & Subs
Replies: 9
Views: 364

Re: Functions & Subs

... When I used VB6, the "Declare" was not required unless it was an external API call. Prior to that, it had to be specified. ... You don't need to explicitly declare the functions if you define them before use, like this: sub _ sayHelloTo( _ byref aName as const string ) ? "Hello, ...
by storm5510
Dec 23, 2019 17:58
Forum: General
Topic: Functions & Subs
Replies: 9
Views: 364

Re: Functions & Subs

What I am trying to do is to get this: "12-23-2019 12:35:01" to look like this: "Dec 23 12:35." It takes up a lot less space on the screen. I forgot to specify my goal in my OP. Sorry! I removed the "overload" part and corrected the Left() statement. I goofed the Left()...
by storm5510
Dec 23, 2019 13:51
Forum: General
Topic: Functions & Subs
Replies: 9
Views: 364

Functions & Subs

Up until now, I have been placing all my code inline to avoid using a Function or Sub because I cannot get them to work. I need to learn how to use them in this context. Below is the relevant sections of my code regarding a function. The numbers in parenthesis are referenced further down. (3) declar...
by storm5510
Dec 19, 2019 2:17
Forum: General
Topic: Text Output To File
Replies: 7
Views: 284

Re: Text Output To File

An easy method is simply to open a file at the program start, write to it, and close it at the program end. Open "primes.txt" For Output As #1 Print #1, "List of primes" Function isprime(n As Ulongint) As Integer If (n=2) Or (n=3) Then Return -1 If n Mod 2 = 0 Then Return 0 If n...

Go to advanced search