Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Pascal/HP-UX Programmer's Guide > Chapter 4 Predefined Pascal Constants, Data Types, and Modules

Ranges of Predefined Data Types

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Table 4-2 “Ranges and Sizes of Predefined HP Pascal Types ” 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-2 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, 0, 4.940656458412466*10-324..1.797693134862315*10308

64

Real

-3.402823*1038..-1.401298*10-45, 0, 1.401298*10-45..3.402823*1038

32

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.
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.