@@ -2321,7 +2321,7 @@ msgstr ""
23212321
23222322#: ../../library/decimal.rst:1687
23232323msgid "Numerical overflow."
2324- msgstr ""
2324+ msgstr "數值溢位。 "
23252325
23262326#: ../../library/decimal.rst:1689
23272327msgid ""
@@ -2331,10 +2331,13 @@ msgid ""
23312331"outward to ``Infinity``. In either case, :class:`Inexact` and :class:"
23322332"`Rounded` are also signaled."
23332333msgstr ""
2334+ "指示在捨入發生後指數大於 :attr:`Context.Emax`。如果未被捕捉,結果取決於捨入"
2335+ "模式,要麼向內拉到最大可表示的有限數,要麼向外捨入到 ``Infinity``。在任何"
2336+ "情況下,:class:`Inexact` 和 :class:`Rounded` 也會發出訊號。"
23342337
23352338#: ../../library/decimal.rst:1698
23362339msgid "Rounding occurred though possibly no information was lost."
2337- msgstr ""
2340+ msgstr "發生了捨入,但可能沒有遺失資訊。 "
23382341
23392342#: ../../library/decimal.rst:1700
23402343msgid ""
@@ -2466,6 +2469,7 @@ msgid ""
24662469"The :mod:`decimal` module makes it possible to restore the identities by "
24672470"expanding the precision sufficiently to avoid loss of significance:"
24682471msgstr ""
2472+ ":mod:`decimal` 模組透過充分擴展精度以避免有效性損失,使恢復恆等式成為可能:"
24692473
24702474#: ../../library/decimal.rst:1796
24712475msgid ""
@@ -2493,6 +2497,8 @@ msgid ""
24932497"including ``NaN``, ``sNaN``, ``-Infinity``, ``Infinity``, and two zeros, "
24942498"``+0`` and ``-0``."
24952499msgstr ""
2500+ ":mod:`decimal` 模組的數字系統提供特殊值,包括 ``NaN``、``sNaN``、"
2501+ "``-Infinity``、``Infinity`` 和兩個零:``+0`` 和 ``-0``。"
24962502
24972503#: ../../library/decimal.rst:1819
24982504msgid ""
@@ -2502,13 +2508,18 @@ msgid ""
25022508"infinity can result from rounding beyond the limits of the largest "
25032509"representable number."
25042510msgstr ""
2511+ "無窮大可以直接透過 ``Decimal('Infinity')`` 建構。此外,當 :exc:`DivisionByZero` "
2512+ "訊號未被捕捉時,它們可能來自被零除。同樣地,當 :exc:`Overflow` 訊號未被捕捉時,"
2513+ "無窮大可能來自超出最大可表示數字限制的捨入。"
25052514
25062515#: ../../library/decimal.rst:1824
25072516msgid ""
25082517"The infinities are signed (affine) and can be used in arithmetic operations "
25092518"where they get treated as very large, indeterminate numbers. For instance, "
25102519"adding a constant to infinity gives another infinite result."
25112520msgstr ""
2521+ "無窮大是有符號的(仿射)並且可以用於算術運算,在那裡它們被視為非常大的不確定"
2522+ "數字。例如,將常數加到無窮大會得到另一個無限結果。"
25122523
25132524#: ../../library/decimal.rst:1828
25142525msgid ""
@@ -2787,30 +2798,37 @@ msgid ""
27872798"Q. It is cumbersome to type ``decimal.Decimal('1234.5')``. Is there a way "
27882799"to minimize typing when using the interactive interpreter?"
27892800msgstr ""
2801+ "問:輸入 ``decimal.Decimal('1234.5')`` 很麻煩。在使用互動式直譯器時有沒有"
2802+ "減少輸入的方法?"
27902803
27912804#: ../../library/decimal.rst:2073
27922805msgid "A. Some users abbreviate the constructor to just a single letter:"
2793- msgstr ""
2806+ msgstr "答:一些使用者將建構函式縮寫為單個字母: "
27942807
27952808#: ../../library/decimal.rst:2079
27962809msgid ""
27972810"Q. In a fixed-point application with two decimal places, some inputs have "
27982811"many places and need to be rounded. Others are not supposed to have excess "
27992812"digits and need to be validated. What methods should be used?"
28002813msgstr ""
2814+ "問:在有兩個小數位的定點應用程式中,一些輸入有很多位數需要捨入。其他輸入"
2815+ "不應該有多餘的數字,需要驗證。應該使用什麼方法?"
28012816
28022817#: ../../library/decimal.rst:2083
28032818msgid ""
28042819"A. The :meth:`~Decimal.quantize` method rounds to a fixed number of decimal "
28052820"places. If the :const:`Inexact` trap is set, it is also useful for "
28062821"validation:"
28072822msgstr ""
2823+ "答::meth:`~Decimal.quantize` 方法捨入到固定的小數位數。如果設定了 :const:"
2824+ "`Inexact` 陷阱,它也對驗證很有用:"
28082825
28092826#: ../../library/decimal.rst:2101
28102827msgid ""
28112828"Q. Once I have valid two place inputs, how do I maintain that invariant "
28122829"throughout an application?"
28132830msgstr ""
2831+ "問:一旦我有了有效的兩位輸入,我如何在整個應用程式中維持這個不變量?"
28142832
28152833#: ../../library/decimal.rst:2104
28162834msgid ""
@@ -2819,12 +2837,15 @@ msgid ""
28192837"division and non-integer multiplication, will change the number of decimal "
28202838"places and need to be followed-up with a :meth:`~Decimal.quantize` step:"
28212839msgstr ""
2840+ "答:像加法、減法和整數乘法這樣的運算會自動保持定點。其他運算,如除法和非整數"
2841+ "乘法,會改變小數位數,需要用 :meth:`~Decimal.quantize` 步驟跟進:"
28222842
28232843#: ../../library/decimal.rst:2122
28242844msgid ""
28252845"In developing fixed-point applications, it is convenient to define functions "
28262846"to handle the :meth:`~Decimal.quantize` step:"
28272847msgstr ""
2848+ "在開發定點應用程式時,定義函式來處理 :meth:`~Decimal.quantize` 步驟很方便:"
28282849
28292850#: ../../library/decimal.rst:2136
28302851msgid ""
@@ -2833,16 +2854,19 @@ msgid ""
28332854"precisions. Is there a way to transform them to a single recognizable "
28342855"canonical value?"
28352856msgstr ""
2857+ "問:有很多方式表達相同的值。數字 ``200``、``200.000``、``2E2`` 和 ``.02E+4`` "
2858+ "在不同精度下都有相同的值。有沒有辦法將它們轉換為單一可識別的標準值?"
28362859
28372860#: ../../library/decimal.rst:2141
28382861msgid ""
28392862"A. The :meth:`~Decimal.normalize` method maps all equivalent values to a "
28402863"single representative:"
28412864msgstr ""
2865+ "答::meth:`~Decimal.normalize` 方法將所有等價值映射到單一代表:"
28422866
28432867#: ../../library/decimal.rst:2148
28442868msgid "Q. When does rounding occur in a computation?"
2845- msgstr ""
2869+ msgstr "問:在計算中什麼時候發生捨入? "
28462870
28472871#: ../../library/decimal.rst:2150
28482872msgid ""
@@ -2853,6 +2877,9 @@ msgid ""
28532877"rounding (or other context operations) is applied to the *result* of the "
28542878"computation::"
28552879msgstr ""
2880+ "答:它發生在計算 *之後*。decimal 規範的理念是數字被視為精確的,並且獨立於"
2881+ "目前情境而建立。它們甚至可以比目前情境具有更高的精度。計算使用這些精確的"
2882+ "輸入進行處理,然後將捨入(或其他情境運算)應用於計算的 *結果*: ::"
28562883
28572884#: ../../library/decimal.rst:2157
28582885msgid ""