aboutsummaryrefslogtreecommitdiffstats
path: root/man3/ecvt.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/ecvt.3')
-rw-r--r--man3/ecvt.322
1 files changed, 17 insertions, 5 deletions
diff --git a/man3/ecvt.3 b/man3/ecvt.3
index 1eafca785b..f5555a3c9d 100644
--- a/man3/ecvt.3
+++ b/man3/ecvt.3
@@ -39,7 +39,9 @@ ecvt, fcvt \- convert a floating-point number to a string
.BI "char *fcvt(double " number ", int " ndigits ", int *" decpt ,
.BI "int *" sign );
.SH DESCRIPTION
-The \fBecvt\fP() function converts \fInumber\fP to a null-terminated
+The
+.BR ecvt ()
+function converts \fInumber\fP to a null-terminated
string of \fIndigits\fP digits (where \fIndigits\fP is reduced to an
system-specific limit determined by the precision of a double),
and returns a pointer to the string.
@@ -59,13 +61,23 @@ If
.I number
is zero, it is unspecified whether *\fIdecpt\fP is 0 or 1.
.PP
-The \fBfcvt\fP() function is identical to \fBecvt\fP(), except that
+The
+.BR fcvt ()
+function is identical to
+.BR ecvt (),
+except that
\fIndigits\fP specifies the number of digits after the decimal point.
.SH "RETURN VALUE"
-Both the \fBecvt\fP() and \fBfcvt\fP() functions return a pointer to a
+Both the
+.BR ecvt ()
+and
+.BR fcvt ()
+functions return a pointer to a
static string containing the ASCII representation of \fInumber\fP.
-The static string is overwritten by each call to \fBecvt\fP() or
-\fBfcvt\fP().
+The static string is overwritten by each call to
+.BR ecvt ()
+or
+.BR fcvt ().
.SH NOTES
These functions are obsolete.
Instead,