HP Fortran Programmer's Reference (September 2007)

Intrinsic procedures
Data representation models
Chapter 11508
The Bit Model
The bit model interprets a nonnegative scalar data object
a
of type integer as a sequence of
binary digits (bits), based upon the model:
where
n
is the number of bits, given by the intrinsic function BIT_SIZE and each
b
has a bit
value of 0 or 1. The bits are numbered from right to left beginning with 0.
“PRECISION(X)” on page 603 Decimal precision in real model for X
“RADIX(X)” on page 607 Base (radix) in integer or real model for X
“RANGE(X)” on page 610 Decimal exponent range in integer or real model for
X
“RRSPACING(X)” on page 615 1/(relative spacing near X)
“SCALE(X, I)” on page 616 X with real model exponent changed by I
“SET_EXPONENT(X, I)” on
page 620
Set the real model exponent of X to I
“SPACING(X)” on page 625 Absolute spacing near X
“TINY(X)” on page 632 Smallest number in real model for X
Table 11-2 Intrinsic functions and data representation models (Continued)
Intrinsic function Description
ab
k
2
k
k0=
n1
=