Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not 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

  1. .TH fmt_double 3
  2. .SH NAME
  3. fmt_double \- write an ASCII representation of a double
  4. .SH SYNTAX
  5. .B #include <libowfat/fmt.h>
  6. size_t \fBfmt_double\fP(char *\fIdest\fR,double \fId\fR,size_t
  7. \fImaxlen\fR,size_t \fIprec\fR);
  8. .SH DESCRIPTION
  9. fmt_double writes an ASCII representation ('0' to '9', base 10) of
  10. \fId\fR to \fIdest\fR and returns the number of bytes written. No more
  11. than \fImaxlen\fR bytes will be written. \fIprec\fR digits will be
  12. written, using scientific notation if necessary.
  13. fmt_double does not append \\0.
  14. If \fIdest\fR equals FMT_LEN (i.e. is zero), fmt_double returns the
  15. number of bytes it would have written.
  16. .SH "SEE ALSO"
  17. scan_double(3)