Home | Previous Page | Next Page   Function Descriptions >

dectolong( )

The dectolong( ) function converts a decimal type number into an int4 type number.

Syntax

mint dectolong(dec_val, lng_val)
   dec_t *dec_val;
   int4  *lng_val;
dec_val
is a pointer to the decimal structure that contains the value to convert to an itn4 integer.
lng_val
is a pointer to an int4 variable to contain the result of the conversion.

Return Values

0
The conversion was successful.
-1200
The magnitude of the decimal type number is greater than 2,147,483,647.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]