From 9edd82385cb0afd052c24d468a8bcf2b2081efea Mon Sep 17 00:00:00 2001 From: yichung Date: Thu, 8 Nov 2018 11:10:00 +0800 Subject: [PATCH 1/2] translate a part of floatingpoint --- tutorial/floatingpoint.po | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/tutorial/floatingpoint.po b/tutorial/floatingpoint.po index 74a46048498..6740fabe9b2 100644 --- a/tutorial/floatingpoint.po +++ b/tutorial/floatingpoint.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-26 18:54+0800\n" -"PO-Revision-Date: 2018-11-07 16:57+0800\n" +"PO-Revision-Date: 2018-11-08 11:06+0800\n" "Last-Translator: Liang-Bo Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -197,12 +197,18 @@ msgid "" "It's important to realize that this is, in a real sense, an illusion: you're " "simply rounding the *display* of the true machine value." msgstr "" +"要了解一件很重要的事,在真正意義上,浮點數的表示是一種幻覺:你基本上在捨入真" +"正機器數值所\\ *展示的值*\\ 。" #: ../../tutorial/floatingpoint.rst:114 msgid "" "One illusion may beget another. For example, since 0.1 is not exactly 1/10, " "summing three values of 0.1 may not yield exactly 0.3, either::" msgstr "" +"這種幻覺可能會產生下一個幻覺。舉例來說,因為 0.1 不是真正的 1/10,把三個 0.1 " +"的值相加,也不會產生精準的 0.3:\n" +"\n" +"::" #: ../../tutorial/floatingpoint.rst:120 msgid "" @@ -210,6 +216,11 @@ msgid "" "cannot get any closer to the exact value of 3/10, then pre-rounding with :" "func:`round` function cannot help::" msgstr "" +"同時,因為 0.1 不會為再更接近精準的 1/10,還有 0.3 不會為再更接近精準的 " +"3/10,預先用 :func:`round`\\ 函式捨入並不會有幫助:\n" +"\n" +"\n" +"::" #: ../../tutorial/floatingpoint.rst:127 msgid "" @@ -217,6 +228,10 @@ msgid "" "the :func:`round` function can be useful for post-rounding so that results " "with inexact values become comparable to one another::" msgstr "" +"雖然數字不會再更接近他們的精準數值,但 :func:`round` 函式可以對事後的捨入有所" +"幫助,如此一來,不精確的數值就變得可以互相比較:\n" +"\n" +"::" #: ../../tutorial/floatingpoint.rst:134 msgid "" @@ -226,6 +241,9 @@ msgid "" "www.lahey.com/float.htm>`_ for a more complete account of other common " "surprises." msgstr "" +"二進位浮點數架構擁有很多這樣的驚喜。底下的「表示法錯誤」章節,詳細的解釋了" +"「0.1」的問題。如果想要更多其他常見驚喜的完整資料,可以參考 `浮點數的危險 " +"`_。" #: ../../tutorial/floatingpoint.rst:139 msgid "" From 2cda85eba256658ec1f1450520c3269d418311b9 Mon Sep 17 00:00:00 2001 From: yichung Date: Sun, 18 Nov 2018 00:49:09 +0800 Subject: [PATCH 2/2] Fix small errors --- tutorial/floatingpoint.po | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tutorial/floatingpoint.po b/tutorial/floatingpoint.po index 6740fabe9b2..50033796b71 100644 --- a/tutorial/floatingpoint.po +++ b/tutorial/floatingpoint.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-26 18:54+0800\n" -"PO-Revision-Date: 2018-11-08 11:06+0800\n" +"PO-Revision-Date: 2018-11-18 00:47+0800\n" "Last-Translator: Liang-Bo Wang \n" "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" "tw)\n" @@ -216,9 +216,8 @@ msgid "" "cannot get any closer to the exact value of 3/10, then pre-rounding with :" "func:`round` function cannot help::" msgstr "" -"同時,因為 0.1 不會為再更接近精準的 1/10,還有 0.3 不會為再更接近精準的 " -"3/10,預先用 :func:`round`\\ 函式捨入並不會有幫助:\n" -"\n" +"同時,因為 0.1 不能再更接近精準的 1/10,還有 0.3 不能再更接近精準的 3/10,預" +"先用 :func:`round` 函式捨入並不會有幫助:\n" "\n" "::" @@ -242,7 +241,7 @@ msgid "" "surprises." msgstr "" "二進位浮點數架構擁有很多這樣的驚喜。底下的「表示法錯誤」章節,詳細的解釋了" -"「0.1」的問題。如果想要更多其他常見驚喜的完整資料,可以參考 `浮點數的危險 " +"「0.1」的問題。如果想要其他常見驚喜更完整的描述,可以參考 `浮點數的危險 " "`_。" #: ../../tutorial/floatingpoint.rst:139