Chapter 7 PAC Language Configuration Elements
7-13
Hexadecimal Format
This is an integer type constant expressed using hexadecimal numbers.
This is expressed by an arrangement of 0 to F with “&H” at the head of the
numeric value.
If the range for a numeric value of the integer type constant is expressed in the
hexadecimal format, it is
&H0~&HFFFFFFFF (in the range of 32 bits).
Example: &H100
&H3D5A
[ 2 ] Single Precision Real Type Constant
This is a constant of real type that has significant digit precision up to 7 digits.
The range of a value is -3.402823E + 38 ~ 3.402823E + 38.
The following 3 notation formats are available for a single precision real type
constant.
• A number that has a single precision real type postposition “!” at the end
• Exponential format with the use of E
• Real of 7 digits or less without the above designation
Example: 1256.3
35.78!
-9.345E-06
[ 3 ] Double Precision Real Type Constant
This is a real type constant that has significant digit precision up to15 digits.
The range of a value is -1.79769313486231D + 308 ~ 1.79769313486231D +
308.
The following 3 notation formats are available for a double precision real type
constant.
• A number that has a double precision real type postposition “#” at the end
• Exponential format with the use of D
• Real of more than 7 digits or less than 15 digits without the above
designation
Example: 1256.325468
35.78#
-9.345D-06
Note: An error may occur due to the internal expression and
significant digit number of single precision real type constants
and double precision real type constants.
Example
F1=10.0025
D1=10.0025
In this case, it is internally expressed as 1.0002499580383…E+1, and if
this is entered with the single precision real type, this becomes
10.00250 by rounding off the next digit of the significant digit number
(8th digit).
If this is entered with the double precision real type, this becomes a
value like 10.002499580383… by rounding off the next digit of the
significant digit number (16th digit).
Comments to this Manuals