rfmtdouble()

Converts a double value to a character string having a specified format.

Syntax

mint rfmtdouble(double dvalue, char *fmt, char *outbuf);
  1. dvalue is the double value to format.
  2. fmt points to a string containing the formatting mask.
  3. outbuf is a pointer to a char buffer that receives the formatted string.

Returns

Table 1. Return codes
Code Description
0 The conversion was successful.
<0 The conversion failed.
-1211 The program ran out of memory (memory-allocation error).
-1217 The format string is too large.

Usage

The fmt string contains the formatting mask for the string.