dectoflt()

Converts a decimal value to a float.

Syntax

mint dectoflt(dec_t *source, float *destination);
  1. source is a pointer to the decimal value to convert.
  2. destination is a pointer to the resulting float value.

Returns

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