Link to this page
Print this page
Parent topic
:
C API functions
C-Extensions
/
C API functions
dectoflt()
Converts a decimal value to a float.
Syntax
mint dectoflt(dec_t *
source
, float *
destination
);
source
is a pointer to the decimal value to convert.
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.