Link to this page
Print this page
Parent topic
:
C API functions
C-Extensions
/
C API functions
deccvdbl()
Converts a double value to a decimal value.
Syntax
mint deccvdbl(double
dbl
, dec_t *
np
);
dbl
is the double value to convert to a decimal type value.
np
is a pointer to a decimal structure containing the result of the conversion.
Returns
Table 1. Return codes
Code
Description
0
The conversion was successful.
<0
The conversion failed.