08-04-2022, 11:33 PM
Code: (Select All)
GOTO 98.6
END
98.6 PRINT "Hello World!"
SLEEPPete
|
Anybody use decimals for line numbers?
|
|
08-04-2022, 11:33 PM
Code: (Select All) GOTO 98.6Pete
08-04-2022, 11:40 PM
it never occurred to me, just tested it in QB for DOS and it works there also
08-04-2022, 11:50 PM
Yep, leave it to me to stumble on yet another 1/2 ASCII way to code something!
Pete
08-05-2022, 02:11 AM
I'm a bit bemused: why shouldn't it work? we can use words as labels, why not decimal numbers?
08-05-2022, 03:07 AM
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
08-05-2022, 03:23 AM
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.
08-05-2022, 03:28 AM
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
|
|
« Next Oldest | Next Newest »
|
| 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 |
|