ESQL/C functions for decimal conversion
The
Informix® ESQL/C function
library provides the following functions to convert a DECIMAL (or
MONEY) value to and from some C-language data types.
Function name | Description |
---|---|
deccvasc() | Converts a C char type to an mi_decimal type value |
deccvdbl() | Converts a C double (mi_double_precision) type to an mi_decimal type value |
deccvint() | Converts a C two-byte integer value to an mi_decimal type value |
deccvlong() | Converts a C four-byte integer value to an mi_decimal type value |
dececvt() and decfcvt() | Converts an mi_decimal type value to text |
dectoasc() | Converts an mi_decimal type value to text |
dectodbl() | Converts an mi_decimal type value to a C double (mi_double_precision) type value |
dectoint() | Converts an mi_decimal type value to a C two-byte integer value |
dectolong() | Converts an mi_decimal type value to
a C four-byte integer value The Informix® ESQL/C library also provides functions to convert some numeric data types to formatted strings. |