The Scientist and Engineer's Guide to Digital Signal Processing
In the simplest cases, the 256 bit patterns might represent the
integers from 0 to 255, 1 to 256, -127 to 128, etc.
In a more unusual scheme,
the 256 bit patterns might represent 256 exponentially related numbers:
Everyone accessing the data must understand
1, 10, 100, 1000,
what value each bit pattern represents.
This is usually provided by an
algorithm or formula for converting between the represented value and the
corresponding bit pattern, and back again.
While many encoding schemes are possible, only two general formats have
(also called integer numbers) and
(also called real numbers).
In this book's BASIC programs, fixed point
variables are indicated by the % symbol as the last character in the name, such
as: I%, N%, SUM%, etc.
All other variables are floating point, for example:
X, Y, MEAN, etc.
When you evaluate the formats presented in the next few
pages, try to understand them in terms of their