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

  man pages->NetBSD man pages -> atof (3)              
Title
Content
Arch
Section
 

ATOF(3)

Contents


NAME    [Toc]    [Back]

     atof - convert ASCII string to double

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <stdlib.h>

     double
     atof(const char *nptr);

DESCRIPTION    [Toc]    [Back]

     The atof() function converts the initial portion of the string pointed to
     by nptr to double representation.

     It is equivalent to:

           strtod(nptr, (char **)NULL);

SEE ALSO    [Toc]    [Back]

      
      
     atoi(3), atol(3), strtod(3), strtol(3), strtoul(3)

STANDARDS    [Toc]    [Back]

     The atof() function conforms to ANSI X3.159-1989 (``ANSI C'').

BSD                              June 4, 1993                              BSD
[ Back ]
 Similar pages
Name OS Title
ecvt OpenBSD convert double to ASCII string
fcvt OpenBSD convert double to ASCII string
gcvt OpenBSD convert double to ASCII string
wcstold FreeBSD convert string to float, double or long double
wcstof FreeBSD convert string to float, double or long double
wcstod FreeBSD convert string to float, double or long double
atof Linux convert a string to a double.
getint IRIX convert from string to integer, double, or boolean
wcstod Tru64 Convert a wide-character string to a double-precision value
wcstod IRIX convert wide-character string to double-precision number
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service