HP Pascal/iX Programmer's Guide (31502-90023)

4-: 1
Chapter 4 Predefined Pascal Constants, Data
Types, and Modules
This chapter:
* Gives the value of each predefined constant.
* Gives the range of each predefined data type.
* Explains in detail the predefined data types
bit16
,
bit32
,
bit52
,
longint
, and
shortint
, which are unique to HP Pascal.
* Explains each predefined module.
Values of Predefined Constants
HP Pascal's two predefined constants and their values are:
Constant Value
minint
-2147483648
maxint
2147483647
When you wish to use the minimum integer, you must use the predefined
constant
minint
and not the actual value.
Ranges of Predefined Data Types
Table 4-1 gives the range and size of each predefined data type
available to HP Pascal. The data types are in alphabetical order and the
sizes are in bits. To get a size in bytes, divide the number of bits by
eight.
Table 4-1. Ranges and Sizes of Predefined HP Pascal Types
----------------------------------------------------------------------------------------------
| | | |
| Type | Range | Unpacked |
| | | Size in Bits |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| Bit16 | 0..65535 | 16 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| Bit32 | 0..232-1 | 32 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| Bit52 | 0..252-1 | 64 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| Boolean | FALSE or TRUE, where FALSE=0 and TRUE=1 | 8 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| Char | ASCII character set | 8 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| Integer | -231..231-1 | 32 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| Longreal * | -1.797693134862315*10308..-4.940656458412466*10-324, | 64 |