Converts a 4-byte integer value to a decimal.
Syntax
mint deccvlong(int4 lng, dec_t *np);
- lng is the int4 value to convert to a decimal type value.
- np is a pointer to a decimal structure to contain the result of the conversion.
Returns
Table 1. Return
codes
Code |
Description |
0 |
The conversion was successful. |
<0 |
The conversion failed. |
Important: Even if the function name is "deccvlong",
it takes a 4-byte int as argument.