Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a% = 200: b% = a%: c& = a% * b% ERROR! HELP!
#1
..
..
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.
Reply
#2
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.
Reply
#3
Code:
a% = 200: b% = a%: c& = a% * CLNG(b%)

(As I go to post this I see Glenn has responded...)
Reply
#4
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.
Reply
#5
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.
Reply
#6
:normal: Ok. I'm very competitive now ,,..,,..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)