Ranges of Predefined Data Types [ HP Pascal/iX Programmer's Guide ] MPE/iX 5.0 Documentation
HP Pascal/iX Programmer's Guide
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 |
| | 0, | |
| | 4.940656458412466*10-324..1.797693134862315*10308 | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| Real * | -3.402823*1038..-1.401298*10-45, | 32 |
| | 0, | |
| | 1.401298*10-45..3.402823*1038 | |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| Shortint | -32768..32767 | 16 |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| Longint | -263..263-1 | 64 |
| | | |
----------------------------------------------------------------------------------------------
* The range of values for longreal and real include denormalized
numbers.
NOTE HP and IEEE floating point numbers are identical. HP3000_16
floating point numbers are different from HP and IEEE floating
point numbers. For details, refer to the Introduction to MPE XL
for MPE V Programmers.
MPE/iX 5.0 Documentation