ID : 3541
Integer Type
Integer type data are an integer from -2147483648 to +2147483647.
Figures after the decimal point are rounded off. (Rounding to the Nearest Even Number)
Expression of Immediate Data by Program Description
Decimal Expression
When a number is described by program description, the number is normally recognized as a decimal number.
Binary Expression
A leading "&B" expresses that the value is binary.
E.g. &B11110101
Range of integer type in the binary format is indicated below:
&B0 to &B11111111111111111111111111111111 (32-bit)
Use Bin function to extract integer type data in the binary format.
Use Val function to import binary text data as integer type data.
Hexadecimal Expression
A leading "&H" expresses that the value is hexadecimal.
E.g. &HF157AB
Range of integer type in the hexadecimal format is indicated below:
&H0 to &HFFFFFFFF (32-bit)
Use Hex function to extract integer type data in the hexadecimal format.
Use Val function to import binary text data as integer type data.
Global Variable
Global variable of integer type is I type.
Local Variable
"Integer" is designated by local variable declaration.
Dim aaa As Integer
Precautions for Integer Type Variable
Data out of the range cannot be assigned to integer type variable.
ID : 3541