The following DB2 functions convert DECIMAL values to the DOUBLE data type. The corresponding Actuate SQL functions are implemented using these native functions, and may therefore return slightly inaccurate values, especially for calculations involving very large or very small numbers:
POWER ( )
ROUND ( )
FLOOR ( )When a numeric type is cast to VARCHAR(n) and n is not large enough to accommodate the string, Actuate SQL returns an error. DB2, however, truncates the value without returning an error.Table 8-1 shows how DB2 data types map to Actuate SQL data types.
Actuate SQL data type Compiled to DB2 data type The maximum number of significant digits (precision) for DB2 DECIMAL is 31. DB2 VARCHAR has a maximum length of 32,672 characters. The maximum number of significant digits (precision) for DB2 DECIMAL is 31. DB2 VARCHAR has a maximum length of 32,672 characters.
|
|
Copyright Actuate Corporation 2012 |