All Forums Database
Isabelle Salmon 1 post Joined 06/06
14 Jun 2006
UDFs : Use of DECIMAL8

Hallo, I'am trying to use the data type DECIMAL8 as input parameter in for an UDF.In the BTEQ script :CREATE FUNCTION udf_to_char(InputNumber DECIMAL(18,8))... is OKIn the C script :void udf_to_char_d1(DECIMAL8 *InputNumber, VARCHAR_LATIN *result, also OKBut has someone a sample of how I can use the following structure in my C scripts in order to recover my number. I don't find documentation about this. typedef struct{ unsigned long int low; long int high;} DECIMAL8, NUMERIC8; /*10 <= n <= 18 */Regards, Isabelle

You must sign in to leave a comment.