|
|
1.1 root 1: .th ATOF III 4/30/73
2: .sh NAME
3: atof \*- 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.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.