Skip to content

Commit 122e707

Browse files
Copilotjosix
andcommitted
Continue decimal.po translation - Add special values and FAQ sections
Co-authored-by: josix <18432820+josix@users.noreply.github.com>
1 parent 20f18d3 commit 122e707

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

library/decimal.po

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2321,7 +2321,7 @@ msgstr ""
23212321

23222322
#: ../../library/decimal.rst:1687
23232323
msgid "Numerical overflow."
2324-
msgstr ""
2324+
msgstr "數值溢位。"
23252325

23262326
#: ../../library/decimal.rst:1689
23272327
msgid ""
@@ -2331,10 +2331,13 @@ msgid ""
23312331
"outward to ``Infinity``. In either case, :class:`Inexact` and :class:"
23322332
"`Rounded` are also signaled."
23332333
msgstr ""
2334+
"指示在捨入發生後指數大於 :attr:`Context.Emax`。如果未被捕捉,結果取決於捨入"
2335+
"模式,要麼向內拉到最大可表示的有限數,要麼向外捨入到 ``Infinity``。在任何"
2336+
"情況下,:class:`Inexact` 和 :class:`Rounded` 也會發出訊號。"
23342337

23352338
#: ../../library/decimal.rst:1698
23362339
msgid "Rounding occurred though possibly no information was lost."
2337-
msgstr ""
2340+
msgstr "發生了捨入,但可能沒有遺失資訊。"
23382341

23392342
#: ../../library/decimal.rst:1700
23402343
msgid ""
@@ -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:"
24682471
msgstr ""
2472+
":mod:`decimal` 模組透過充分擴展精度以避免有效性損失,使恢復恆等式成為可能:"
24692473

24702474
#: ../../library/decimal.rst:1796
24712475
msgid ""
@@ -2493,6 +2497,8 @@ msgid ""
24932497
"including ``NaN``, ``sNaN``, ``-Infinity``, ``Infinity``, and two zeros, "
24942498
"``+0`` and ``-0``."
24952499
msgstr ""
2500+
":mod:`decimal` 模組的數字系統提供特殊值,包括 ``NaN``、``sNaN``、"
2501+
"``-Infinity``、``Infinity`` 和兩個零:``+0`` 和 ``-0``。"
24962502

24972503
#: ../../library/decimal.rst:1819
24982504
msgid ""
@@ -2502,13 +2508,18 @@ msgid ""
25022508
"infinity can result from rounding beyond the limits of the largest "
25032509
"representable number."
25042510
msgstr ""
2511+
"無窮大可以直接透過 ``Decimal('Infinity')`` 建構。此外,當 :exc:`DivisionByZero` "
2512+
"訊號未被捕捉時,它們可能來自被零除。同樣地,當 :exc:`Overflow` 訊號未被捕捉時,"
2513+
"無窮大可能來自超出最大可表示數字限制的捨入。"
25052514

25062515
#: ../../library/decimal.rst:1824
25072516
msgid ""
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."
25112520
msgstr ""
2521+
"無窮大是有符號的(仿射)並且可以用於算術運算,在那裡它們被視為非常大的不確定"
2522+
"數字。例如,將常數加到無窮大會得到另一個無限結果。"
25122523

25132524
#: ../../library/decimal.rst:1828
25142525
msgid ""
@@ -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?"
27892800
msgstr ""
2801+
"問:輸入 ``decimal.Decimal('1234.5')`` 很麻煩。在使用互動式直譯器時有沒有"
2802+
"減少輸入的方法?"
27902803

27912804
#: ../../library/decimal.rst:2073
27922805
msgid "A. Some users abbreviate the constructor to just a single letter:"
2793-
msgstr ""
2806+
msgstr "答:一些使用者將建構函式縮寫為單個字母:"
27942807

27952808
#: ../../library/decimal.rst:2079
27962809
msgid ""
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?"
28002813
msgstr ""
2814+
"問:在有兩個小數位的定點應用程式中,一些輸入有很多位數需要捨入。其他輸入"
2815+
"不應該有多餘的數字,需要驗證。應該使用什麼方法?"
28012816

28022817
#: ../../library/decimal.rst:2083
28032818
msgid ""
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:"
28072822
msgstr ""
2823+
"答::meth:`~Decimal.quantize` 方法捨入到固定的小數位數。如果設定了 :const:"
2824+
"`Inexact` 陷阱,它也對驗證很有用:"
28082825

28092826
#: ../../library/decimal.rst:2101
28102827
msgid ""
28112828
"Q. Once I have valid two place inputs, how do I maintain that invariant "
28122829
"throughout an application?"
28132830
msgstr ""
2831+
"問:一旦我有了有效的兩位輸入,我如何在整個應用程式中維持這個不變量?"
28142832

28152833
#: ../../library/decimal.rst:2104
28162834
msgid ""
@@ -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:"
28212839
msgstr ""
2840+
"答:像加法、減法和整數乘法這樣的運算會自動保持定點。其他運算,如除法和非整數"
2841+
"乘法,會改變小數位數,需要用 :meth:`~Decimal.quantize` 步驟跟進:"
28222842

28232843
#: ../../library/decimal.rst:2122
28242844
msgid ""
28252845
"In developing fixed-point applications, it is convenient to define functions "
28262846
"to handle the :meth:`~Decimal.quantize` step:"
28272847
msgstr ""
2848+
"在開發定點應用程式時,定義函式來處理 :meth:`~Decimal.quantize` 步驟很方便:"
28282849

28292850
#: ../../library/decimal.rst:2136
28302851
msgid ""
@@ -2833,16 +2854,19 @@ msgid ""
28332854
"precisions. Is there a way to transform them to a single recognizable "
28342855
"canonical value?"
28352856
msgstr ""
2857+
"問:有很多方式表達相同的值。數字 ``200``、``200.000``、``2E2`` 和 ``.02E+4`` "
2858+
"在不同精度下都有相同的值。有沒有辦法將它們轉換為單一可識別的標準值?"
28362859

28372860
#: ../../library/decimal.rst:2141
28382861
msgid ""
28392862
"A. The :meth:`~Decimal.normalize` method maps all equivalent values to a "
28402863
"single representative:"
28412864
msgstr ""
2865+
"答::meth:`~Decimal.normalize` 方法將所有等價值映射到單一代表:"
28422866

28432867
#: ../../library/decimal.rst:2148
28442868
msgid "Q. When does rounding occur in a computation?"
2845-
msgstr ""
2869+
msgstr "問:在計算中什麼時候發生捨入?"
28462870

28472871
#: ../../library/decimal.rst:2150
28482872
msgid ""
@@ -2853,6 +2877,9 @@ msgid ""
28532877
"rounding (or other context operations) is applied to the *result* of the "
28542878
"computation::"
28552879
msgstr ""
2880+
"答:它發生在計算 *之後*。decimal 規範的理念是數字被視為精確的,並且獨立於"
2881+
"目前情境而建立。它們甚至可以比目前情境具有更高的精度。計算使用這些精確的"
2882+
"輸入進行處理,然後將捨入(或其他情境運算)應用於計算的 *結果*: ::"
28562883

28572884
#: ../../library/decimal.rst:2157
28582885
msgid ""

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy