mi_decimal *mi_string_to_decimal(decimal_string)
mi_string *decimal_string;
The mi_string_to_decimal( ) function converts the decimal string that decimal_string references to its internal DECIMAL (mi_decimal) value. An internal DECIMAL value is the format that the database server uses to store a value in a DECIMAL column of the database. This format can represent both fixed-point and floating-point decimal numbers.
The mi_string_to_decimal( ) function accepts the decimal string in the numeric format of the current processing locale. For more information, see the IBM Informix: GLS User's Guide.
See also the descriptions of mi_decimal_to_string( ), mi_string_to_date( ), mi_string_to_datetime( ), mi_string_to_interval( ), and mi_string_to_money( ).
For more information on how to convert decimal strings to internal DECIMAL format, see the IBM Informix: DataBlade API Programmer's Guide.