DOKK / manpages / debian 10 / manpages-pt-dev / atof.3.pt
ATOF(3) Linux Programmer's Manual ATOF(3)

atof - converte uma string para um valor double.

#include <stdlib.h>

double atof(const char *nptr);

A função atof() converte a porção inicial da string nptr para um valor double. O comportamento desta função é semelhante ao da

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

exceto que nenhum erro é detectado.

O valor convertido.

SVID 3, POSIX, BSD 4.3, ISO 9899

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

Paulo César Mendes <drpc@ism.com.br> (tradução) xxxxxxxxxxxxxxxxxxxxxxxxx <xxx@xxxxxx.xxx.xx> (revisão)

March 29, 1993 GNU