Home | Previous Page | Next Page   Function Descriptions >

mi_decimal_to_string( )

The mi_decimal_to_string( ) function creates a text (string) representation of a decimal value from the binary (internal) DECIMAL representation.

Syntax

mi_string *mi_decimal_to_string(decimal_data)
   mi_decimal *decimal_data;
decimal_data
is a pointer to the internal DECIMAL representation of the decimal value.
Valid in Client LIBMI Application? Valid in User-Defined Routine?
Yes Yes

Usage

The mi_decimal_to_string( ) function converts the internal DECIMAL value that decimal_data contains into a decimal string. An internal DECIMAL value is the format that the database server uses to store a value in a DECIMAL column of the database.

Important:
The mi_decimal_to_string( ) function replaces the mi_binary_to_decimal( ) function for internal DECIMAL-to-string conversion in DataBlade API modules.
Global Language Support

The mi_decimal_to_string( ) function formats the decimal string in the numeric format of the current processing locale. For more information, see the IBM Informix: GLS User's Guide.

End of Global Language Support

Return Values

An mi_string pointer
is a pointer to the decimal string that mi_decimal_to_string( ) has created.
NULL
indicates that the function was not successful.

Related Topics

See also the descriptions of mi_date_to_string( ), mi_datetime_to_string( ), mi_interval_to_string( ), mi_money_to_string( ), and mi_string_to_decimal( ).

For more information on how to convert internal DECIMAL values to decimal strings, see the IBM Informix: DataBlade API Programmer's Guide.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]