dectodbl()

Converts a decimal value to a double value.

Syntax

mint dectodbl(dec_t *np, double *dblp);
  1. np is a pointer to the decimal structure to convert to a double type value.
  2. dblp is a pointer to a double variable.

Returns

Table 1. Return codes
Code Description
0 The conversion was successful.
<0 The conversion failed.