1 .\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" This replaces an earlier man page written by Walter Harms
26 .\" <walter.harms@informatik.uni-oldenburg.de>.
28 .TH QECVT 3 2021-03-22 "GNU" "Linux Programmer's Manual"
30 qecvt, qfcvt, qgcvt \- convert a floating-point number to a string
33 .B #include <stdlib.h>
35 .BI "char *qecvt(long double " number ", int " ndigits \
36 ", int *restrict " decpt ,
37 .BI " int *restrict " sign );
38 .BI "char *qfcvt(long double " number ", int " ndigits \
39 ", int *restrict " decpt ,
40 .BI " int *restrict " sign );
41 .BI "char *qgcvt(long double " number ", int " ndigit ", char *" buf );
45 Feature Test Macro Requirements for glibc (see
46 .BR feature_test_macros (7)):
55 In glibc up to and including 2.19:
58 .\" FIXME . The full FTM picture looks to have been something like the
62 .\" glibc 2.18 to glibc 2.19
63 .\" _BSD_SOURCE || _SVID_SOURCE
64 .\" glibc 2.10 to glibc 2.17
65 .\" _SVID_SOURCE || (_XOPEN_SOURCE >= 500 ||
66 .\" (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED) &&
67 .\" ! (_POSIX_C_SOURCE >= 200809L))
68 .\" Before glibc 2.10:
69 .\" _SVID_SOURCE || _XOPEN_SOURCE >= 500 ||
70 .\" (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED)
82 respectively, except that they use a
91 For an explanation of the terms used in this section, see
99 Interface Attribute Value
102 T} Thread safety MT-Unsafe race:qecvt
105 T} Thread safety MT-Unsafe race:qfcvt
108 T} Thread safety MT-Safe
115 Not seen in most common UNIX implementations,
117 .\" Not supported by libc4 and libc5.
120 These functions are obsolete.