Open ClientConnect supports the following five decimal types:
CS_REAL, a 4-byte decimal value.
CS_FLOAT, an 8-byte decimal value.
CS_PACKED370, which is used to handle IBM S/370 packed decimal data. It can be converted to the Adaptive Server money, char, numeric, or Sybase-decimal datatype with cs_convert.
CS_PACKED370 values can
be negative. The maximum number of decimal places for a packed decimal
object is 31.
CS_NUMERIC, which is used to handle Adaptive Server numeric data. It can be converted to character or packed decimal. For example:
typedef struct _cs_numeric
{
CS_BYTE precision;
CS_BYTE scale;
CS_BYTE array CS_MAX_NAMELEN;
} CS_NUMERIC;
CS_DECIMAL, which is used to handle Adaptive Server numeric data. It can be converted to character or packed decimal. It is defined the same way as CS_NUMERIC.