Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
byte loops (*solved*)
#5
My experiments:
Code:
DIM x as byte

for x=-36 to 91
print x;" , ";
next x
Works well, but if startts wits -37:
Code:
DIM x as byte

for x=-37 to 91
print x;" , ";
next x
It does not work anymore, so 37 is a magic number.
Code:
DIM x as Integer

for x=-20000 to 20000
print x;" , ";
next x
did not work too.
Code:
DIM x as Integer

for x=-15000 to 15000
print x;" , ";
next x
Works well
Code:
DIM x as Long

for x=-1100000000 to 1100000000
print x;" , ";
next x
does not work
Code:
DIM x as Long

for x=-1000000000 to 1000000000
print x;" , ";
next x
Works

Code:
DIM x as byte

for x=-91 to 36
print x;" , ";
next x
Works
Code:
DIM x as byte

for x=-91 to 37
print x;" , ";
next x
DOES NOT WORK!!! Confusedhock:
OMG, how it can be?
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)