3 ms·
MS BASIC on TRS-80 model 100 default, a normal variable like N=10, is a signed float that requires 8 bytes optional, add ! suffix, N!=10, is a signed float th
by Brian_K_White 2y ago
MS BASIC on TRS-80 model 100
default, a normal variable like N=10, is a signed float that requires 8 bytes
optional, add ! suffix, N!=10, is a signed float that requires 4 bytes
optional, add % suffix, N%=10, is a signed int that requires 2 bytes
And that's all the numbers. There are strings which use one byte per byte, but you have to call a function to convert a single byte of a string to it's numerical value.
An unsigned 8-bit int would be very welcome on that and any similar platform. But the best you can get is a signed 16-bit int, and you have to double the length of your variable name all through the source to even get that. Annoying.