Rogue Wave banner
Previous fileTop of DocumentContentsNo linkNext file
SourcePro Release Notes

SourcePro Analysis

OS/Compiler Specific Issues

Red Hat/SUSE Linux - gcc

Currency Module (only)

Red Hat Linux - Intel C++

Currency Module (only)

Module-Specific Issues

Currency

Inexact exception for results with insignificant trailing zeros

Multiplication where the result contains insignificant trailing zeros may cause an inexact exception to be thrown, even if the result is represented exactly (SP-10262). In the following example, in which the class RWDecimal< RWMultiPrecisionInt<2> > can represent numbers with 18 decimal digits, an inexact exception will be generated:

The program creates the following output:

In one sense, the inexact exception is correct, since a certain number of significant digits are lost in the calculation. It just happens that those digits are all zeros.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.