1fmt_double(3) Library Functions Manual fmt_double(3)
2
3
4
6 fmt_double - write an ASCII representation of a double
7
9 #include <fmt.h>
10
11 size_t fmt_double(char *dest,double d,size_t maxlen,size_t prec);
12
14 fmt_double writes an ASCII representation ('0' to '9', base 10) of d to
15 dest and returns the number of bytes written. No more than maxlen
16 bytes will be written. prec digits will be written, using scientific
17 notation if necessary.
18
19 fmt_double does not append \0.
20
21 If dest equals FMT_LEN (i.e. is zero), fmt_double returns the number of
22 bytes it would have written.
23
25 scan_double(3)
26
27
28
29 fmt_double(3)