The deccvlong() function

The deccvlong() function converts an int4 type value into a decimal type value.

Syntax

mint deccvlong(lng_val, dec_val)
   int4 lng_val;
   dec_t *dec_val;
lng_val
The int4 value to convert to a decimal value.
dec_val
A pointer to a decimal structure to contain the result of the conversion.

Return values

0
The conversion was successful.
<0
The conversion failed.