The mi_binary_to_money() function

The mi_binary_to_money() function creates a text (string) representation of a monetary value from the internal (binary) MONEY representation.

Syntax

mi_lvarchar *mi_binary_to_money(money_data)
   mi_money *money_data;
money_data
A pointer to the internal MONEY representation of the monetary value.
Valid in client LIBMI application? Valid in user-defined routine?
Yes Yes

Usage

The mi_binary_to_money() function converts the internal MONEY value that money_data contains into a monetary string. It returns a pointer to the buffer that contains the resulting monetary string.

For GLS, the mi_binary_to_money() function formats the monetary string in the monetary format of the current processing locale. It also performs any code-set conversion necessary between the current processing locale and the target locale.

Important: The mi_binary_to_money() function is supported only for compatibility with earlier versions of existing DataBlade® API modules. The DataBlade® API will eventually discontinue support for this function. Use the mi_money_to_string() function in any new DataBlade® API modules.

Return values

An mi_lvarchar pointer
A pointer to the monetary string that mi_binary_to_money() creates.
NULL
The function was not successful.