Color BASIC: Difference between revisions

Content deleted Content added
Add {refimprove} tag, minor clean-up for readability.
m Examples: format
Line 9:
 
===Examples===
<source lang="sdlbasic">
 
A=5<br>
A$="THIS IS A STRING"<br>
K7=10<br>
BB$="HELLO!"<br>
ZZ=1.54<br>
</source>
 
Numeric variables have only one type, a binary floating point implementation. Each numeric variable consumes 5 bytes of memory and can be in the range from -1E+38 up to 1E+37
 
Multidimensional arrays are also supported with both numeric and string variables. In the case of an array, the element address is enclosed with a parenthesis:
<source lang="sdlbasic">
 
A(1)=1<br>
A$(1)="BOOKS"<br>
</source>
 
Multiple dimensions are separated by commas
<source lang="sdlbasic">
 
A(1,3)=4<br>
A$(2,2)="XYZ123"<br>
</source>
 
==Operators and Symbols==