*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> gcvt (3)              
Title
Content
Arch
Section
 

GCVT(3)

Contents


NAME    [Toc]    [Back]

       gcvt - convert a floating-point number to a string.

SYNOPSIS    [Toc]    [Back]

       #include <stdlib.h>

       char *gcvt(double number, size_t ndigit, char *buf);

DESCRIPTION    [Toc]    [Back]

       The gcvt() function converts number to a minimal length NULL terminated
       ASCII string and stores the result in buf.  It produces ndigit significant
 digits in either printf(3) F format or E format.

RETURN VALUE    [Toc]    [Back]

       The  gcvt()  function  returns  the address of the string pointed to by
       buf.

SEE ALSO    [Toc]    [Back]

      
      
       ecvt(3), fcvt(3), sprintf(3)



				  1993-03-29			       GCVT(3)
[ Back ]
 Similar pages
Name OS Title
ecvt IRIX convert floating-point number to string
strtod Linux convert ASCII string to floating point number
frexp FreeBSD convert floating-point number to fractional and integral components
frexp Linux convert floating-point number to fractional and integral components
frexp OpenBSD convert floating-point number to fractional and integral components
frexp NetBSD convert floating-point number to fractional and integral components
strtold FreeBSD convert ASCII string to floating point
strtof FreeBSD convert ASCII string to floating point
strtod FreeBSD convert ASCII string to floating point
itrunc Tru64 truncate a floating-point number
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service