Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Anybody use decimals for line numbers?
#1
Code: (Select All)
GOTO 98.6
END
98.6 PRINT "Hello World!"
SLEEP

Pete
Reply
#2
it never occurred to me, just tested it in QB for DOS and it works there also
Reply
#3
Yep, leave it to me to stumble on yet another 1/2 ASCII way to code something!

Pete Big Grin
Reply
#4
I'm a bit bemused: why shouldn't it work? we can use words as labels, why not decimal numbers?
Reply
#5
Too bad we can't use variables, that would get interesting! GOTO 1/3
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply
#6
I remember a couple old games which used this as an organization method. Was it Zork? Wizardry? The way it worked was by setting code sections into various number ranges.

Example:

Line 100.000 - 199.999 was character creation.
Line 200.000 - 299.999 was character level up + skill acquire

And so on.
Reply
#7
I'd do that with ole GW Basic, map out programs with line numbers.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Strings - Numbers Kernelpanic 0 112 01-20-2026, 10:29 PM
Last Post: Kernelpanic
  Random Numbers PhilOfPerth 16 1,724 10-19-2025, 10:26 PM
Last Post: Pete
  Program line Chris 10 1,240 04-06-2025, 10:28 PM
Last Post: TempodiBasic
  using pseudo-random numbers for repeatable content - kind of a neat trick madscijr 5 1,003 02-13-2025, 11:12 PM
Last Post: Pete
  random numbers badger 8 1,388 11-08-2024, 02:22 AM
Last Post: DANILIN

Forum Jump:


Users browsing this thread: 1 Guest(s)