2001-02-02 17:54:47 +00:00
|
|
|
.TH fmt_double 3
|
|
|
|
.SH NAME
|
|
|
|
fmt_double \- write an ASCII representation of a double
|
|
|
|
.SH SYNTAX
|
2017-05-13 22:51:26 +00:00
|
|
|
.B #include <libowfat/fmt.h>
|
2001-02-02 17:54:47 +00:00
|
|
|
|
2006-11-07 17:56:05 +00:00
|
|
|
size_t \fBfmt_double\fP(char *\fIdest\fR,double \fId\fR,size_t
|
|
|
|
\fImaxlen\fR,size_t \fIprec\fR);
|
2001-02-02 17:54:47 +00:00
|
|
|
.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)
|