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