In V11 and later, DSQL exposes a method to retrieve a numeric parameter as a string.
Function
ctsqlGetNumericParameterAsString
Retrieve the Numeric parameter as string.
Parameters
Return
Return error code or 0 on success.
Example
CTSQLRET ctsqlDECL ctsqlGetNumericParameterAsString(pCTSQLCMD hCmd, INTEGER index, CTSQLCHAR* buffer, INTEGER length)