home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man3 / atof.3 < prev    next >
Encoding:
Text File  |  1975-06-26  |  748 b   |  30 lines

  1. .th ATOF III 4/30/73
  2. .sh NAME
  3. atof \*- convert ASCII to floating
  4. .sh SYNOPSIS
  5. .ft B
  6. double atof(nptr)
  7. .br
  8. char *nptr;
  9. .br
  10. .ft R
  11. .sh DESCRIPTION
  12. .it Atof
  13. converts a string to a floating
  14. number.
  15. .it Nptr
  16. should point to a string containing the number;
  17. the first unrecognized character ends the number.
  18. .s3
  19. The only numbers recognized are:  an optional minus
  20. sign followed by a string of digits optionally containing
  21. one decimal point, then followed optionally by the
  22. letter \fBe\fR followed by a signed integer.
  23. .sh DIAGNOSTICS
  24. There are none; overflow results in a very large
  25. number and garbage characters terminate the scan.
  26. .sh BUGS
  27. The
  28. routine should accept initial \fB+\fR, initial blanks, and \fBE\fR for \fBe\fR.
  29. Overflow should be signalled.
  30.