05-11-2003, 02:45 AM
I downloaded the program BIGINT and read the README (although I didn't understand it 100%).
This is what I did. I opened BIGINT.BAS into QBASIC. I then typed in this code at the bottom (with two random numbers I wanted to divide).
'$INCLUDE:'BIGINT.BI'
DIV$ = "455725081051"
THROUGH$ = "457"
PRINT SI.Divide$(DIV$, THROUGH$)
When I ran the program, it gave me the asnwer of 1200000000, which isn't correct (the asnwer should have been 997210243).
Could someone please show me what I am doing wrong (I want to be able to divide an integer between 0 and 1,000,000,000,000 by another integer between 1 and 100,000, and be able to multiply integers.)?
Please keep in mind that I have just started learning QBASIC and a lot of things may not make sense to me.
Thanks.
*EDIT* I was looking at the source code to BIGINT.BAS compared to the code it showed while the program was in QBASIC. When it was in QBASIC, this is what the last few lines were:
CONST LN.E = 2.718281828#
DEFINT A-Z
'$DYNAMIC
'$END_META
When looking at the source, there were a lot more lines of code below those 4. Is that supposed to happen or could that be why I get incorrect numbers?
This is what I did. I opened BIGINT.BAS into QBASIC. I then typed in this code at the bottom (with two random numbers I wanted to divide).
'$INCLUDE:'BIGINT.BI'
DIV$ = "455725081051"
THROUGH$ = "457"
PRINT SI.Divide$(DIV$, THROUGH$)
When I ran the program, it gave me the asnwer of 1200000000, which isn't correct (the asnwer should have been 997210243).
Could someone please show me what I am doing wrong (I want to be able to divide an integer between 0 and 1,000,000,000,000 by another integer between 1 and 100,000, and be able to multiply integers.)?
Please keep in mind that I have just started learning QBASIC and a lot of things may not make sense to me.
Thanks.
*EDIT* I was looking at the source code to BIGINT.BAS compared to the code it showed while the program was in QBASIC. When it was in QBASIC, this is what the last few lines were:
CONST LN.E = 2.718281828#
DEFINT A-Z
'$DYNAMIC
'$END_META
When looking at the source, there were a lot more lines of code below those 4. Is that supposed to happen or could that be why I get incorrect numbers?