OSDN Git Service

(split) LDP: Translate several pages
[linuxjm/LDP_man-pages.git] / draft / man3 / printf.3
index 804ab45..388f6fa 100644 (file)
@@ -216,18 +216,13 @@ glibc 2.2 では、さらに一つフラグ文字が追加されている。
 フィールド幅が小さかったり指定がなかったりしても、フィールドが切り詰められる ことはない。もし変換結果がフィールド幅よりも広かった場合、
 フィールドは変換結果が入る幅に広げられる。
 .SS 精度
-An optional precision, in the form of a period (\(aq.\(aq)  followed by an
-optional decimal digit string.  Instead of a decimal digit string one may
-write "*" or "*m$" (for some decimal integer m) to specify that the
-precision is given in the next argument, or in the m\-th argument,
-respectively, which must be of type \fIint\fP.  If the precision is given as
-just \(aq.\(aq, the precision is taken to be zero.  A negative precision is
-taken as if the precision were omitted.  This gives the minimum number of
-digits to appear for \fBd\fP, \fBi\fP, \fBo\fP, \fBu\fP, \fBx\fP, and \fBX\fP conversions, the
-number of digits to appear after the radix character for \fBa\fP, \fBA\fP, \fBe\fP,
-\fBE\fP, \fBf\fP, and \fBF\fP conversions, the maximum number of significant digits
-for \fBg\fP and \fBG\fP conversions, or the maximum number of characters to be
-printed from a string for \fBs\fP and \fBS\fP conversions.
+オプションである精度は、ピリオド (\(aq.\(aq) とそれに続く10進数という 形式で指定する (10進数はオプション) 。
+10進数の文字列の代わりに "*" や "*m$" (m は 10 進整数)を書くこともできる。 "*" と "*m$" はそれぞれ、次の引き数と m
+番目の引き数を精度として 使うことを指定する (これらの引き数は \fIint\fP 型でなければならない)。 精度として \(aq.\(aq
+だけが指定された場合、 精度はゼロとみなされる。 精度が負の数だった場合、 精度は指定されなかったものとみなされる。 \fBd\fP, \fBi\fP, \fBo\fP,
+\fBu\fP, \fBx\fP, \fBX\fP 変換では、表示される最小の桁数を指定する。 \fBa\fP, \fBA\fP, \fBe\fP, \fBE\fP, \fBf\fP, \fBF\fP
+変換では、小数点以下に表示される数字の桁数を指定する。 \fBg\fP と \fBG\fP 変換では、有効数字の最大桁数を指定する。 \fBs\fP と \fBS\fP
+変換では、文字列から出力される最大文字数を指定する。
 .SS 長さ修飾子
 「整数変換」とは、 \fBd\fP, \fBi\fP, \fBo\fP, \fBu\fP, \fBx\fP, \fBX\fP 変換のことである。
 .TP