Content deleted Content added
Chuckiesdad (talk | contribs) Add {refimprove} tag, minor clean-up for readability. |
m →Examples: format |
||
Line 9:
===Examples===
<source lang="sdlbasic">
A=5
A$="THIS IS A STRING"
K7=10
BB$="HELLO!"
ZZ=1.54
</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
A$(1)="BOOKS"
</source>
Multiple dimensions are separated by commas
<source lang="sdlbasic">
A(1,3)=4
A$(2,2)="XYZ123"
</source>
==Operators and Symbols==
|