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
662 B
Groff

24 years ago
.TH fmt_double 3
.SH NAME
fmt_double \- write an ASCII representation of a double
.SH SYNTAX
.B #include <libowfat/fmt.h>
24 years ago
size_t \fBfmt_double\fP(char *\fIdest\fR,double \fId\fR,size_t
\fImaxlen\fR,size_t \fIprec\fR);
24 years ago
.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)