pTAL Reference Manual (G06.24+, H06.09+, J06.03+)

%B1010111010101101010110FBinary
%H298756%FHexadecimal
For readability, always specify the % in the %F hexadecimal suffix to prevent the suffix from being
confused with the integer part of the constant. The following format, where a space replaces the
% in the %F suffix, is allowed but not recommended:
-%H99FF29 F
The system stores a FIXED number in binary notation. When the system stores a FIXED number, it
scales the constant as dictated by the declaration or expression. Scaling means the system multiplies
or divides the constant by powers of 10 to move the decimal.
For information about scaling of FIXED values in expressions, see Chapter 5 (page 69). For
information about scaling of FIXED values in declarations, see Chapter 7 (page 103).
REAL and REAL(64) Numeric
Signed 32-bit REAL or 64-bit REAL(64) floating-point numberRepresentation
Range ±8.6361685550944446 * 10-78 through
±1.15792089237316189 * 10+77
Precision REAL—to approximately 6.5 significant decimal digits
REAL(64)—to approximately 16.5 significant decimal digits
integer
is one or more decimal digits that compose the integer part.
fraction
is one or more decimal digits that compose the fractional part.
E
specifies the floating-point constant REAL.
L
specifies the floating-point constant REAL(64).
exponent
is one or two decimal digits that compose the exponential part.
Examples of REAL and REAL(64) numeric constants, showing the integer part, the fractional part,
the E or L suffix, and the exponent part:
REAL(64)REALDecimal Value
0.0L00.0E00
2 2.0L02.0e0
0.2L10.2E1
62 Data Representation