environment, which contains:
- mode information about how actions like rounding will occur
- state information about what exception flags have been raised
The IEEE arithmetic standards specify features of the environment. The proposed Floating-Point C Extensions specify functions for manipulating it. The CommonPoint application system includes classes to simplify access to the environment, along with support for the FPCE environment functions.
Many applications don't interact with the environment; they round to nearest exclusively and do their error checking based on numerical results, not flags. For others, the environment is a powerful facility. Read this chapter for information about the computational model of the environment and the tools for manipulating it.
- The environment model
-
- Programming examples
-
- The environment classes
-
- Rounding modes and exception flags
-
- Handling floating-point exceptions
-
- Accessing the environment
-