Posts: 3,368
Threads: 195
Joined: Jan 2003
..
..
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Posts: 704
Threads: 0
Joined: Dec 2002
or a negative number when running an executable, right? Well, you tried to square 200 and store the result (40,000) as an INTEGER. INTEGER variables must be between -32,768 and 32,767. In the process of performing the multiplication, even though you tried to assign the result to a LONG variable, the result was stored temporarily in an INTEGER data space.
ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
Posts: 1,752
Threads: 21
Joined: Jun 2002
Code:
a% = 200: b% = a%: c& = a% * CLNG(b%)
(As I go to post this I see Glenn has responded...)
Posts: 3,368
Threads: 195
Joined: Jan 2003
clng? Ah, thanks.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Posts: 3,368
Threads: 195
Joined: Jan 2003
Now 2000! takes less than 46.8 seconds to compute!! :]
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Posts: 1,845
Threads: 44
Joined: Aug 2002
:normal: Ok. I'm very competitive now ,,..,,..