Skip to content

Commit c8319c2

Browse files
author
github-actions
committed
Merge 3.11 into 3.8
1 parent d3c6498 commit c8319c2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

library/string.po

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,12 @@ msgid ""
860860
"Decimal`. If no digits follow the decimal point, the decimal point is also "
861861
"removed unless the ``#`` option is used."
862862
msgstr ""
863+
"科学的表記です。与えられた精度 ``p`` に対して、科学的表記では係数と指数を区切"
864+
"り文字 'e' で分けて表します。係数部分は小数点の前に1桁、小数点の後に ``p`` "
865+
"桁、合計 ``p + 1`` 桁の有効桁数を持ちます。 精度が指定されない場合、 :class:"
866+
"`float` では小数点以下 ``6`` 桁の精度が使われ、いっぽう :class:`~decimal."
867+
"Decimal` では係数部全てが表示されます。小数点以下の桁がない場合、 ``#`` オプ"
868+
"ションが使われた場合をのぞき、小数点は除去されます。"
863869

864870
#: ../../library/string.rst:497
865871
msgid "``'E'``"
@@ -885,6 +891,11 @@ msgid ""
885891
"decimal point, the decimal point is also removed unless the ``#`` option is "
886892
"used."
887893
msgstr ""
894+
"固定小数点表記です。与えられた精度 ``p`` に対して、小数点以下 ``p`` 桁で数値"
895+
"を表します。精度が指定されない場合、 :class:`float` では ``6`` 桁の精度が使わ"
896+
"れ、いっぽう :class:`~decimal.Decimal` では数値全体を表示するのに十分な精度が"
897+
"使われます。小数点以下の桁がない場合、 ``#`` オプションが使われた場合をのぞ"
898+
"き、小数点は除去されます。"
888899

889900
#: ../../library/string.rst:510
890901
msgid "``'F'``"
@@ -909,6 +920,9 @@ msgid ""
909920
"format or in scientific notation, depending on its magnitude. A precision of "
910921
"``0`` is treated as equivalent to a precision of ``1``."
911922
msgstr ""
923+
"汎用表記です。与えられた精度 ``p >= 1`` に対して、この表記では数値を有効桁数 "
924+
"``p`` に丸めた上で、数値の大きさに応じて固定小数点表記または科学的表記で表し"
925+
"ます。精度 ``0`` は精度 ``1`` と同じものと取り扱われます。"
912926

913927
#: ../../library/string.rst:520
914928
msgid ""
@@ -922,6 +936,14 @@ msgid ""
922936
"decimal point is also removed if there are no remaining digits following it, "
923937
"unless the ``'#'`` option is used."
924938
msgstr ""
939+
"正確なルールは次の通りです: 書式 ``'e'`` 型および精度 ``p-1`` 桁で数値を"
940+
"フォーマットした結果、指数部が ``exp`` になったと仮定します。このとき ``m <= "
941+
"exp < p`` ならば、数値は書式 ``'f'`` 型および精度 ``p-1-exp`` 桁でフォーマッ"
942+
"トされます。ただし ``m`` は浮動小数点数では -4 であり、 :class:`Decimals "
943+
"<decimal.Decimal>` に対しては -6 です。それ以外の場合、数値は書式 ``'e'`` 型"
944+
"および精度 ``p-1`` 桁でフォーマットされます。どちらの場合でも、仮数部の有効で"
945+
"ない末尾のゼロは取り除かれます。また小数点以下に表示する桁が無い場合、 "
946+
"``'#'`` オプションが使われた場合をのぞき、小数点は除去されます。"
925947

926948
#: ../../library/string.rst:533
927949
msgid ""

0 commit comments

Comments
 (0)