ILE C/C++ Programmer's Guide


C++ Packed Decimal Data Conversions

If the value of the packed decimal type to be converted is within the range of values that can be represented exactly, the value of the packed decimal type is not changed.

Packed decimal values are compatible if their types are the same. For example, decimal(n1, p1) and decimal(n2, p2) have compatible types if and only if

((n1 == n2) && (p1 == p2))


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