| www.delorie.com/djgpp/doc/libc-2.01/libc_48.html | search |
#include <stdlib.h> double atof(const char *string);
Convert as much of the string as possible to an equivalent double precision real number.
This function is almost like strtod(string, NULL) (see section strtod).
The equivalent value, or zero if the string does not represent a number.
main(int argc, char **argv)
{
double d = atof(argv[1]);
...
Go to the first, previous, next, last section, table of contents.
| webmaster donations bookstore | delorie software privacy |
| Copyright © 1997 by DJ Delorie | Updated Apr 1997 |