-> Altair BASIC, Commodore BASIC, TRS-80 Level II and Model III BASIC
-> all use single as the default. It's fairly safe to assume that the MS
-> versions of BASIC
-> from the 70's and 80's use single as a default.
-> Tom Lake
Commodore BASIC had single as its *only* floating-point numeric type.
It suported "short" integers, with the "%" suffix. However, there were
no integer arithmetic routines in the interpreter. Instead, the integer
variables were converted to floating-point, the arithmetic done in that
format, then, if needed, the results converted back to integers. This
made "integer" operations slower than floating-point ones.
dow


|