Converting a Decimal to a String

The jomDecimalToString call, shown in the following example, converts a Decimal primitive type value to its String representation rounded to the specified number of decimal places.

bool jomDecimalToString(const DskDecimal* pDskDecimal, 
                        Character* pResult,
                        Size size,
                        unsigned decimalPlaces);

The parameters for this call are listed in the following table.

Parameter Description
pDskDecimal Decimal primitive type value that is to be converted to its String representation
pResult Character buffer to hold the result from the Decimal conversion
size Length of the string result buffer
decimalPlaces Number of decimal places to include in the converted value