Q(uick)BASIC Keyword: SINGLE
Quick View
SINGLE
Specifies the type for a variable in a declarative statement or parameter list
Worth knowing
Useful and cross-version information about the programming environments of QBasic and QuickBasic.
Description/Parameter(s)
INTEGER | A 16-bit signed integer variable. |
LONG | A 32-bit signed integer variable. |
SINGLE | A single-precision 32-bit floating-point variable. |
DOUBLE | A double-precision 64-bit floating-point variable. |
STRING * n% | A fixed-length string variable n% bytes long. |
STRING | A variable-length string variable. |
Description/Parameter(s)
INTEGER | specifies that a variable is a 16-bit signed integer. |
LONG | specifies that a variable is a 32-bit signed integer. |
SINGLE | specifies that a variable is single-precision floating-point. |
DOUBLE | specifies that a variable is double-precision floating-point. |
STRING | specifies that a variable is a string, in a COMMON, DIM, REDIM, SHARED or STATIC statement. If STRING is followed by * n, the string has a fixed length of n bytes. If no specification follows, the string is variable-length. |
Description/Parameter(s)
INTEGER | A 16-bit signed integer variable. |
LONG | A 32-bit signed integer variable. |
SINGLE | A single-precision floating-point variable. |
DOUBLE | A double-precision floating-point variable. |
STRING | A string variable in a COMMON, DIM, REDIM, SHARED or STATIC statement. If STRING is followed by n, the string has a fixed length of n bytes. If STRING is not followed by n, the string is variable-length. |
CURRENCY | An 8-byte signed integer variable with up to four digits to the right of the decimal point; 15 digits to the left of the decimal point. |