Data Conversion Problems and Results
In Figure 2-11, the phrase Does not fit means that the size of the data from the source variable or column exceeds the size of the target column or variable.
Data Types for Which ESQL/C Carries Out Numeric OperationsFigure 2-12 shows that if ESQL/C performs an operation between an operand with a data type of FLOAT and a second operand with a data type of DECIMAL (DEC), ESQL/C generates a result that has a DECIMAL data type. For more information about DECIMAL values, see "Operations That Involve a Decimal Value".
Figure 2-13 summarizes the rules for arithmetic operations on operands with definite scale (fixed-point decimals). In Figure 2-13, p1 and s1 are the precision and scale of the first operand, and p2 and s2 are the precision and scale of the second operand.