The table below shows the type declaration characters, applicable data types and the total number of bytes required for storage in the computer memory.
Declaration Character | Variable type | Bytes required for storage in memory |
% | INTEGER | 2 |
& | LONG | 4 |
! | SINGLE | 4 |
# | DOUBLE | 8 |
$ | STRING | 1 byte for each character in the string |
Examples of valid variable names are below:
Variable Names | Variable type |
PI # | Double – precision |
Index % | Integer |
Counter & | Long integer |
Student + Names $ | Single – precision |
Value! | Single – precision |