Wrote a short routine to figure out a puzzle about lights on and off.
I note that when the answer goes over 9,999,999 the resulting answer
is always to a power of E. This is not a problem but I would like to be
able to read than light number 10,200,400, for example is on. As a
power
of E this might be rounded off or not as accurate or just hard to read
straight off.
I read that QBASIC cannot handle more than 8 letters or digits.
Is there anyway to print number with 8 digits and not using the E
representation?
Also, I forgot how to write numbers on a line in WRITE to a file.
If I PRINT to the screen with a ; the numbers appear in a row.
Else without a ";" they appear one to a line in a single column.
How do I write to file and indicate the numbers are fill up the row?
Did I specify columns before? It's been a while since I programmed in
BASIC
and before I used the Professional Development System [PSD] BASIC which
was
the last version of MSDOS BASIC, 7.1, I believe.
Then came Visual BASIC which was a continuation of the PDS.
At this point, I wiped out my PDS files and who knows where the
original floppy disks are and if they are any good, after 12 years in
storage. I can't find the original files nor even MASM 5.1 or 6.0 which
I was using and now costs around $160 in its vintage form. I used
assembler routines to do math that slowed down BASIC considerally, like
DFT's and so on. And my hard disks that contained the full development
system crashed and burned a long, long time ago. The backups also
crashed by now or on floppies that might not be good any more, assuming
I can find them among the few hundred floppies here and there.
Any advice would be awfully nice.
Thanks,
Treeline