The deccvint() function
The deccvint() function converts a C int type number into a decimal type number.
Syntax
mint deccvint(int_val, dec_val)
mint int_val;
dec_t *dec_val;
- int_val
- The mint 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.