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