ILE C/C++ Programmer's Guide

How Overflows Are Handled

Table 28 describes the overflow behavior when a _DecimalT class template is assigned to a smaller target.

An exception is generated when a _DecimalT class template is assigned to a _Decimal class template with a smaller target.

An exception is not generated when:


Table 28. Handling Overflow from a _DecimalT Class Template to a Smaller Target

From Type To Type Run-Time Exception?
_DecimalT class template char, int, short, long, bit No
_DecimalT class template _DecimalT class template Yes
_DecimalT class template float No1
Note:
1There is no _DecimalT class template large enough to cause overflow when the _DecimalT class template is assigned to a double.


[ Top of Page | Previous Page | Next Page | Table of Contents ]