A single model underlies the arithmetic operations and mathematical functions in the CommonPoint application system:
Compute each result as if it had unbounded precision and exponent range; then coerce that mathematical result to the format of the destination.
This model is the foundation of the IEEE arithmetic standards. Because the model is faithful to the underlying mathematics, you can deduce the outcome of almost any computation from its purely mathematical behavior. This model is deceptively simple. Its complexity lies in the coercion of a mathematical result to the destination.
Coercing a mathematical result entails a number of special cases:
- Results requiring more significant digits than are available in the data formats are rounded to the available precision. You choose programmatically from four types of rounding.
- Results larger in magnitude than the available range of numbers are replaced by the value
or by the largest representable finite number, depending on the type of rounding.
- Results smaller in magnitude than the available range of (normal) numbers underflow (gracefully) through a range of tiny subnormal numbers, and ultimately to zero.
- Results defined mathematically by limits, for example,
, are given the limiting value.
- Results not defined unambiguously by a limit, for example,
,
, or
, are given the value NaN (not-a-number).
This computational model is closed in the sense that every operation delivers a result that behaves predictably in subsequent operations.
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker