Converting a Real to a Decimal

The jomDecimalFromReal call, shown in the following example, converts a Real primitive type value to a Decimal primitive type value.

bool jomDecimalFromReal(Real real, 
                        DskDecimal* pResult);

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

Parameter Description
real Real primitive type value to be converted
pResult Decimal value resulting from the Real conversion

The jomDecimalFromReal call returns true if the conversion is successful.