diff --git a/tutorial/floatingpoint.po b/tutorial/floatingpoint.po index 0b3f1c4f6c..6bf1e1058e 100644 --- a/tutorial/floatingpoint.po +++ b/tutorial/floatingpoint.po @@ -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 \n" + "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" "Language: zh_TW\n" @@ -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 "" @@ -263,6 +268,10 @@ 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 "" @@ -270,6 +279,8 @@ msgid "" "`decimal` module which implements decimal arithmetic suitable for accounting " "applications and high-precision applications." msgstr "" +"對於需要使用精準地以十進位表示的例子,可以嘗試使用 :mod:`decimal` 模組,其實" +"現了十進位運算,適合會計應用以及高精準度的應用。" #: ../../tutorial/floatingpoint.rst:156 msgid "" @@ -277,6 +288,8 @@ msgid "" "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 "" @@ -285,6 +298,8 @@ msgid "" "statistical operations supplied by the SciPy project. See ." msgstr "" +"如果你是浮點數操作的重度使用者,你應該看一看數值相關的 Python 套件,以及其他" +"許多由 SciPy 計畫支持的數學、統計相關套件。參考 。" #: ../../tutorial/floatingpoint.rst:164 msgid "" @@ -292,6 +307,10 @@ msgid "" "*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 ""