01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ATOF ( 3C ) ATOF ( 3C )<br />

NAME<br />

atof - convert ASCll string to floating-point number<br />

SYNOPSIS<br />

double a.tof (nptr)<br />

char *nptr;<br />

DESCRIPTION<br />

Atof converts a character string pointed to by nptr to a doubleprecision<br />

floating-point number. The first unrecognized character<br />

ends the conversion. Atof recognizes an optional string of whitespace<br />

characters, then an optional sign, then a string of digits<br />

optionally containing a decimal point, then an optional e or E followed<br />

by an optionally signed integer. If the string begins with an<br />

unrecognized character, atof returns the value zero.<br />

DIAGNOSTICS<br />

When the correct value would overflow, atof returns HUGE, and<br />

sets errno to ERANGE. Zero is returned on underflow.<br />

SEE ALSO<br />

scanf(3S).<br />

- 1-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!