Справочник Пользователя для Mitsubishi Electronics Q172CPU(N)
7 - 9
7 OPERATION CONTROL PROGRAMS
7.3 Constant Descriptions
The constant descriptions of the 16-bit integer type, 32-bit integer type and 64-bit
floating-point type are shown below.
floating-point type are shown below.
16-Bit integer type
32-Bit integer type
64-Bit floating-point type
Decimal
representation
representation
K-32768 to K32767
K-2147483648L to K2147483647L
K-1.79E+308 to K-2.23E-308,
K0.0,
K2.23E-308 to K1.79E+308
Hexadecimal
representation
representation
H0000 to HFFFF
H00000000L to HFFFFFFFFL
—
(1) The 32-bit integer type is ended by L and the 64-bit floating-point type is provided
with a decimal point and exponent part (E) to denote their data types explicitly.
(2) The constant without the data type is regarded as the applicable minimum type.
(3) The constant in decimal representation is headed by K and the one in
hexadecimal representation by H.
K can be omitted.
K can be omitted.
(4) The 64-bit floating-point type cannot be represented in hexadecimal.