pTAL Reference Manual (H06.03+)

Data Representation
HP pTAL Reference Manual523746-005
3-18
FIXED Numeric
integer
is one or more of the following digits:
fraction
is one or more decimal digits. fraction is legal only for decimal base.
F
%F
are suffixes that specify FIXED constants:
Examples of FIXED numeric constants:
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 Section 5,
Expressions. For information about scaling of FIXED values in declarations, see
Section 7, Simple Variables.
Decimal 0 through 9
Octal 0 through 7
Binary 0 or 1
Hexadecimal 0 through 9, A through F
Decimal F
Octal F
Binary F
Hexadecimal %F
Decimal 1200.09F
0.1234567F
239840984939873494F
-10.09F
Octal %765235512F
Binary %B1010111010101101010110F
Hexadecimal %H298756%F