Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Translate one more part of floatingpoint#59

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
yichung279 wants to merge2 commits intopython:3.7fromyichung279:floatingpoint-3
Closed
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletionstutorial/floatingpoint.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,7 @@ msgstr ""
"POT-Creation-Date: 2018-06-26 18:54+0800\n"
"PO-Revision-Date: 2018-11-20 14:26+0800\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"

"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
"Language: zh_TW\n"
Expand DownExpand Up@@ -254,6 +255,10 @@ msgid ""
"decimal arithmetic and that every float operation can suffer a new rounding "
"error."
msgstr ""
"如同接近尾聲所說,「這裡沒有簡單的答案」。但不要對使用浮點數過度擔心!Python "
"在浮點數相關操作的錯誤是繼承自浮點數硬體,而在大部分機器上,這只是每個操作不"
"到 2\\*\\*53 之一的部分。這已經超過大多數任務的需求了,但你還是需要把“這不是"
"十進位算數”以及“每個浮點運算都有可能遭遇新的捨入錯誤”放在心上。"

#: ../../tutorial/floatingpoint.rst:146
msgid ""
Expand All@@ -263,20 +268,28 @@ msgid ""
"expect. :func:`str` usually suffices, and for finer control see the :meth:"
"`str.format` method's format specifiers in :ref:`formatstrings`."
msgstr ""
"雖然病態的例子確實存在,但對於大多數浮點數運算的簡單使用,你將會在最後看到你"
"期望的結果,只要你簡單地將你最後的數值結果向你期望的十進位數值捨入。而 :func:"
"`str` 常常就足夠了,如果需要更精細的控制,可以參考 :meth:`str.format` 方法的"
"形式指定工具,於 :ref:`formatstrings`。"

#: ../../tutorial/floatingpoint.rst:152
msgid ""
"For use cases which require exact decimal representation, try using the :mod:"
"`decimal` module which implements decimal arithmetic suitable for accounting "
"applications and high-precision applications."
msgstr ""
"對於需要使用精準地以十進位表示的例子,可以嘗試使用 :mod:`decimal` 模組,其實"
"現了十進位運算,適合會計應用以及高精準度的應用。"

#: ../../tutorial/floatingpoint.rst:156
msgid ""
"Another form of exact arithmetic is supported by the :mod:`fractions` module "
"which implements arithmetic based on rational numbers (so the numbers like "
"1/3 can be represented exactly)."
msgstr ""
"另一個精準運算的形式由 :mod:`fractions` 模組支援,其實現了基於有理數的運算(所"
"以像是 1/3 這樣的數字可以被精準的表達)。"

#: ../../tutorial/floatingpoint.rst:160
msgid ""
Expand All@@ -285,13 +298,19 @@ msgid ""
"statistical operations supplied by the SciPy project. See <https://scipy."
"org>."
msgstr ""
"如果你是浮點數操作的重度使用者,你應該看一看數值相關的 Python 套件,以及其他"
"許多由 SciPy 計畫支持的數學、統計相關套件。參考 <https://scipy.org>。"

#: ../../tutorial/floatingpoint.rst:164
msgid ""
"Python provides tools that may help on those rare occasions when you really "
"*do* want to know the exact value of a float. The :meth:`float."
"as_integer_ratio` method expresses the value of a float as a fraction::"
msgstr ""
"當你真的真的想要知道浮點數的精準數值,Python 提供對於那些稀有場合可能有幫助的"
"工具。 :meth:`float.as_integer_ratio` 方法以分數表示了浮點數的數值:\n"
"\n"
"::"

#: ../../tutorial/floatingpoint.rst:173
msgid ""
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp