deccvflt()

Converts a float to a decimal value.

Syntax

mint deccvflt(float source, dec_t *destination);
  1. source is the float value to be converted.
  2. destination is a pointer to the structure where the decimal value is placed.

Returns

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