Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate library/math.po rst: 30-101 #800

Merged
merged 12 commits into from
Feb 6, 2024
31 changes: 15 additions & 16 deletions library/math.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-17 17:39+0800\n"
"PO-Revision-Date: 2024-01-14 01:32+0800\n"
"PO-Revision-Date: 2024-01-31 17:12+0800\n"
"Last-Translator: Adrian Liaw <[email protected]>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
Expand Down Expand Up @@ -61,8 +61,8 @@ msgid ""
"*x*. If *x* is not a float, delegates to :meth:`x.__ceil__ <object."
"__ceil__>`, which should return an :class:`~numbers.Integral` value."
msgstr ""
"回傳 *x* 經上取整的值,即大於或等於 *x* 的最小整數。若 *x* 並非浮點數,"
"函式將委派給 :meth:`x.__ceil__ <object.__ceil__>`,並回傳 :class:`~numbers."
"回傳 *x* 經上取整的值,即大於或等於 *x* 的最小整數。若 *x* 並非浮點數,此函式"
"將委派給 :meth:`x.__ceil__ <object.__ceil__>`,並回傳 :class:`~numbers."
"Integral` 型別的值。"

#: ../../library/math.rst:41
Expand All @@ -75,7 +75,7 @@ msgstr "回傳從 *n* 個物品中不重複且不考慮排序地取出 *k* 個
msgid ""
"Evaluates to ``n! / (k! * (n - k)!)`` when ``k <= n`` and evaluates to zero "
"when ``k > n``."
msgstr "當 ``k <= n`` 時回傳 ``n! / (k! * (n - k)!)``,否則回傳 ``0``。"
msgstr "當 ``k <= n`` 時其值為 ``n! / (k! * (n - k)!)``,否則其值為 ``0``。"

#: ../../library/math.rst:47
msgid ""
Expand Down Expand Up @@ -111,8 +111,7 @@ msgid ""
"Return *n* factorial as an integer. Raises :exc:`ValueError` if *n* is not "
"integral or is negative."
msgstr ""
"以整數型別回傳 *n* 的階乘。若 *n* 非整數型別或其值為負會引發 :exc:"
"`ValueError`。"
"以整數回傳 *n* 的階乘。若 *n* 非整數型別或其值為負會引發 :exc:`ValueError`。"

#: ../../library/math.rst:74
msgid "Accepting floats with integral values (like ``5.0``) is deprecated."
Expand All @@ -124,8 +123,8 @@ msgid ""
"*x* is not a float, delegates to :meth:`x.__floor__ <object.__floor__>`, "
"which should return an :class:`~numbers.Integral` value."
msgstr ""
"回傳 *x* 經下取整的值,即小於或等於 *x* 的最大整數。若 *x* 並非浮點數,"
"函式將委派給 :meth:`x.__floor__ <object.__floor__>`,並回傳 :class:`~numbers."
"回傳 *x* 經下取整的值,即小於或等於 *x* 的最大整數。若 *x* 並非浮點數,此函式"
"將委派給 :meth:`x.__floor__ <object.__floor__>`,並回傳 :class:`~numbers."
"Integral` 型別的值。"

#: ../../library/math.rst:87
Expand All @@ -143,14 +142,14 @@ msgid ""
"generally preferred when working with floats, while Python's ``x % y`` is "
"preferred when working with integers."
msgstr ""
"回傳和 C 函式庫中 ``fmod(x, y)`` 函式相同的值。請注意此值與 Python 運算式 "
"``x % y`` 的結果可能不同。C 標準定義 ``fmod(x, y)`` 的回傳值完全等同(數學定"
"義上,即無限精度)於 ``x - n*y``,*n* 為使回傳值與 *x* 同號且長度小於 "
"``abs(y)`` 的整數Python 運算式 ``x % y`` 的回傳值則與 *y* 同號,且可能無法"
"精確地計算浮點數。例如:``fmod(-1e-100, 1e100)`` 的回傳值為 ``-1e-100``,"
"``-1e-100 % 1e100`` 的回傳值為 ``1e100-1e-100``,此值無法準確地以浮點數表示,"
"並會四捨五入為令人驚訝的 ``1e100``。因此,處理浮點數時通常建議使用 :func:"
"`fmod`,而處理整數時建議使用 ``x % y``。"
"回傳 C 函式庫所定義的 ``fmod(x, y)`` 函式值。請注意此函式與 Python 運算式 "
"``x % y`` 可能會回傳不同結果。C 標準要求 ``fmod(x, y)`` 的回傳值完全等同("
"學定義上,即無限精度)於 ``x - n*y``,*n* 為可使回傳值與 *x* 同號且長度小於 "
"``abs(y)`` 的整數Python 運算式 ``x % y`` 的回傳值則與 *y* 同號,且可能無法"
"精確地計算浮點數參數。例如:``fmod(-1e-100, 1e100)`` 的值為 ``-1e-100``,但運"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arguments 為引數

"算式 ``-1e-100 % 1e100`` 的結果為 ``1e100-1e-100``,此值無法準確地表示成浮點"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the result of Python's... 漏翻了

"數,並會四捨五入為出乎意料的 ``1e100``。因此,處理浮點數時通常會選擇函式 :"
"func:`fmod`,而處理整數時會選擇運算式 ``x % y``。"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python's 漏翻


#: ../../library/math.rst:102
msgid ""
Expand Down
Loading