gcvt()

Converts a floating point value to a null terminated character string.

  #include <extras/extras_stdlib.h>
  
  char *gcvt(double value, int digits, char *buffer);    
Parameter

value

A floating point value to convert.

digits

The number of significant digits to convert.

buffer

The string to hold the converted floating point value.

Remarks

The character string stored at buffer includes the decimal point and sign of value. This function returns a pointer to the buffer argument.

This facility is not specified in the ISO/IEC standards. It is an EWL extension of the standard libraries.

This facility may not be available on some configurations of the EWL.