You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
653 B
Groff

24 years ago
.TH fmt_double 3
.SH NAME
fmt_double \- write an ASCII representation of a double
.SH SYNTAX
.B #include <fmt.h>
unsigned int \fBfmt_double\fP(char *\fIdest\fR,double \fId\fR,int
\fImaxlen\fR,int \fIprec\fR);
.SH DESCRIPTION
fmt_double writes an ASCII representation ('0' to '9', base 10) of
\fId\fR to \fIdest\fR and returns the number of bytes written. No more
than \fImaxlen\fR bytes will be written. \fIprec\fR digits will be
written, using scientific notation if necessary.
fmt_double does not append \\0.
If \fIdest\fR equals FMT_LEN (i.e. is zero), fmt_double returns the
number of bytes it would have written.
.SH "SEE ALSO"
scan_double(3)