.\"
.TH ECVT 3 2010-09-20 "" "Linux Programmer's Manual"
.\"O .SH NAME
-.SH ̾Á°
+.SH 名前
.\"O ecvt, fcvt \- convert a floating-point number to a string
-ecvt, fcvt \- ÉâÆ°¾®¿ôÅÀ¿ô¤Îʸ»úÎó¤Ø¤ÎÊÑ´¹
+ecvt, fcvt \- 浮動小数点数の文字列への変換
.\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.SH 書式
.B #include <stdlib.h>
.sp
.BI "char *ecvt(double " number ", int " ndigits ", int *" decpt ,
.in -4n
.\"O Feature Test Macro Requirements for glibc (see
.\"O .BR feature_test_macros (7)):
-glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
+glibc 向けの機能検査マクロの要件
.RB ( feature_test_macros (7)
-»²¾È):
+参照):
.in
.sp
.BR ecvt (),
.PD 0
.TP 4
.\"O Since glibc 2.12:
-glibc 2.12 °Ê¹ß:
+glibc 2.12 以降:
.nf
_SVID_SOURCE ||
(_XOPEN_SOURCE\ >=\ 500 ||
.fi
.TP 4
.\"O Before glibc 2.12:
-glibc 2.12 ¤è¤êÁ°:
+glibc 2.12 より前:
_SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
.PD
.RE
.ad b
.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
+.SH 説明
.\"O The
.\"O .BR ecvt ()
.\"O function converts \fInumber\fP to a null-terminated
.\"O .I number
.\"O is zero.
.\"O The low order digit is rounded.
-´Ø¿ô
+関数
.BR ecvt ()
-¤Ï \fInumber\fP ¤ò NUL ʸ»ú¤Ç½ªÃ¼¤µ¤ì¤¿
-\fIndigits\fP ʸ»ú¤Îʸ»úÎó¤ØÊÑ´¹¤·¡¢¤½¤Îʸ»úÎó¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹
-(\fIndigits\fP ¤¬
+は \fInumber\fP を NUL 文字で終端された
+\fIndigits\fP 文字の文字列へ変換し、その文字列へのポインタを返す
+(\fIndigits\fP が
.I double
-¤ÎÀºÅ٤ˤè¤Ã¤Æ·èÄꤵ¤ì¤ë¥·¥¹¥Æ¥à°Í¸¤Î¾å¸ÂÃͤè¤êÂ礤¤¾ì¹ç¤Ï¡¢
-¤½¤Î¾ò·ïÃͤ¬ \fIndigits\fP ¤ÎÃͤȤʤë)¡£
+の精度によって決定されるシステム依存の上限値より大きい場合は、
+その条件値が \fIndigits\fP の値となる)。
.I number
-¤¬ 0 ¤Ç¤Ê¤±¤ì¤Ð¡¢ºÇ¾å°Ì¤Î·å¤Ï 0 °Ê³°¤Ç¤¢¤ë¡£
-ºÇ²¼°Ì¤Î·å¤Ï´Ý¤á¤é¤ì¤ë¡£
+が 0 でなければ、最上位の桁は 0 以外である。
+最下位の桁は丸められる。
.\"O The string itself does not contain a decimal point; however,
.\"O the position of the decimal point relative to the start of the string
.\"O is stored in \fI*decpt\fP.
.\"O If
.\"O .I number
.\"O is zero, it is unspecified whether \fI*decpt\fP is 0 or 1.
-ʸ»úÎó¤Ë¤Ï¾®¿ôÅÀ¤Ï´Þ¤Þ¤ì¤Ê¤¤¡£¤½¤Î¤«¤ï¤ê¤Ë¡¢Ê¸»úÎó¤ÎÀèƬ¤«¤é¤Î¾®¿ôÅÀ¤Î
-°ÌÃÖ¤¬ \fI*decpt\fP ¤ËÊÝ»ý¤µ¤ì¤ë¡£
-\fI*decpt\fP ¤¬Éé¤ÎÃͤξì¹ç¡¢¾®¿ôÅÀ¤¬Ê¸»úÎó¤ÎÀèƬ¤Îº¸Â¦¤Ë¤¢¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡£
-¤â¤·(\fInumber\fP¤Î)Éä¹æ¤¬Éé¤Ê¤é¤Ð \fI*sign\fP ¤Ï 0 °Ê³°¤ÎÃͤˡ¢
-¤½¤¦¤Ç¤Ê¤±¤ì¤Ð 0 ¤ËÀßÄꤵ¤ì¤ë¡£
+文字列には小数点は含まれない。そのかわりに、文字列の先頭からの小数点の
+位置が \fI*decpt\fP に保持される。
+\fI*decpt\fP が負の値の場合、小数点が文字列の先頭の左側にあることを意味する。
+もし(\fInumber\fPの)符号が負ならば \fI*sign\fP は 0 以外の値に、
+そうでなければ 0 に設定される。
.I number
-¤¬ 0 ¤Ê¤é¡¢\fI*decpt\fP ¤¬ 0 ¤« 1 ¤«¤Ï̤µ¬Äê¤Ç¤¢¤ë¡£
+が 0 なら、\fI*decpt\fP が 0 か 1 かは未規定である。
.PP
.\"O The
.\"O .BR fcvt ()
.\"O .BR ecvt (),
.\"O except that
.\"O \fIndigits\fP specifies the number of digits after the decimal point.
-´Ø¿ô
+関数
.BR fcvt ()
-¤Ï
+は
.BR ecvt ()
-¤ÈƱ¤¸µ¡Ç½¤ò»ý¤Ä¤¬¡¢\fIndigits\fP ¤Ï¾®¿ôÅÀ°Ê²¼¤Îʸ»ú¿ô¤ò»ØÄꤹ¤ë¡£
+と同じ機能を持つが、\fIndigits\fP は小数点以下の文字数を指定する。
.\"O .SH "RETURN VALUE"
-.SH ÊÖ¤êÃÍ
+.SH 返り値
.\"O Both the
.\"O .BR ecvt ()
.\"O and
.\"O .BR fcvt ()
.\"O functions return a pointer to a
.\"O static string containing the ASCII representation of \fInumber\fP.
-´Ø¿ô
+関数
.BR ecvt ()
-¤È
+と
.BR fcvt ()
-¤Ï \fInumber\fP ¤Î ASCII ɽ¸½¤ò´Þ¤à
-ÀÅŪ¤ÊÎΰèÆâ¤Îʸ»úÎó¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
+は \fInumber\fP の ASCII 表現を含む
+静的な領域内の文字列へのポインタを返す。
.\"O The static string is overwritten by each call to
.\"O .BR ecvt ()
.\"O or
.\"O .BR fcvt ().
-¤³¤Îʸ»úÎó¤Ï
+この文字列は
.BR ecvt ()
-¤ä
+や
.BR fcvt ()
-¤Î¸Æ¤Ó½Ð¤·¤Î¤¿¤Ó¤Ë¾å½ñ¤¤µ¤ì¤ë¡£
+の呼び出しのたびに上書きされる。
.\"O .SH "CONFORMING TO"
-.SH ½àµò
+.SH 準拠
.\"O SVr2;
.\"O marked as LEGACY in POSIX.1-2001.
-SVr2¡£
-POSIX.1-2001 ¤Ç¤Ï¡Ö²áµî¤Î̾»Ä (LEGACY)¡×¤È°ÌÃÖÉÕ¤±¤é¤ì¤Æ¤¤¤ë¡£
+SVr2。
+POSIX.1-2001 では「過去の名残 (LEGACY)」と位置付けられている。
.\"O POSIX.1-2008 removes the specifications of
.\"O .BR ecvt ()
.\"O and
.\"O instead (though
.\"O .BR snprintf (3)
.\"O may be preferable).
-POSIX.1-2008 ¤Ç¤Ï
+POSIX.1-2008 では
.BR ecvt ()
-¤È
+と
.BR fcvt ()
-¤Î»ÅÍͤ¬ºï½ü¤µ¤ì¡¢Âå¤ï¤ê¤Ë
+の仕様が削除され、代わりに
.BR sprintf (3)
-¤Î»ÈÍѤ¬¿ä¾©¤µ¤ì¤Æ¤¤¤ë(¤·¤«¤·
+の使用が推奨されている(しかし
.BR snprintf (3)
-¤¬¤è¤êŬÀÚ¤«¤â¤·¤ì¤Ê¤¤)¡£
+がより適切かもしれない)。
.\"O .SH NOTES
-.SH Ãí°Õ
+.SH 注意
.\"O Linux libc4 and libc5 specified the type of
.\"O .I ndigits
.\"O as
.\"O .IR size_t .
-Linux libc4 ¤È libc5 ¤Ç¤Ï
+Linux libc4 と libc5 では
.I ndigits
-¤Î·¿¤Ï
+の型は
.I size_t
-¤È¤Ê¤Ã¤Æ¤¤¤¿¡£
+となっていた。
.\"O Not all locales use a point as the radix character ("decimal point").
-¾®¿ôÅÀ¤Ë¥Ô¥ê¥ª¥É¤ò»È¤ï¤Ê¤¤¥í¥±¡¼¥ë¤â¤¢¤ë¡£
+小数点にピリオドを使わないロケールもある。
.\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
+.SH 関連項目
.BR ecvt_r (3),
.BR gcvt (3),
.BR qecvt (3),