Skip to content

Commit 9edd823

Browse files
committed
translate a part of floatingpoint
1 parent 5f06c56 commit 9edd823

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

tutorial/floatingpoint.po

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: Python 3.7\n"
99
"Report-Msgid-Bugs-To: \n"
1010
"POT-Creation-Date: 2018-06-26 18:54+0800\n"
11-
"PO-Revision-Date: 2018-11-07 16:57+0800\n"
11+
"PO-Revision-Date: 2018-11-08 11:06+0800\n"
1212
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1414
"tw)\n"
@@ -197,26 +197,41 @@ msgid ""
197197
"It's important to realize that this is, in a real sense, an illusion: you're "
198198
"simply rounding the *display* of the true machine value."
199199
msgstr ""
200+
"要了解一件很重要的事,在真正意義上,浮點數的表示是一種幻覺:你基本上在捨入真"
201+
"正機器數值所\\ *展示的值*\\ 。"
200202

201203
#: ../../tutorial/floatingpoint.rst:114
202204
msgid ""
203205
"One illusion may beget another. For example, since 0.1 is not exactly 1/10, "
204206
"summing three values of 0.1 may not yield exactly 0.3, either::"
205207
msgstr ""
208+
"這種幻覺可能會產生下一個幻覺。舉例來說,因為 0.1 不是真正的 1/10,把三個 0.1 "
209+
"的值相加,也不會產生精準的 0.3:\n"
210+
"\n"
211+
"::"
206212

207213
#: ../../tutorial/floatingpoint.rst:120
208214
msgid ""
209215
"Also, since the 0.1 cannot get any closer to the exact value of 1/10 and 0.3 "
210216
"cannot get any closer to the exact value of 3/10, then pre-rounding with :"
211217
"func:`round` function cannot help::"
212218
msgstr ""
219+
"同時,因為 0.1 不會為再更接近精準的 1/10,還有 0.3 不會為再更接近精準的 "
220+
"3/10,預先用 :func:`round`\\ 函式捨入並不會有幫助:\n"
221+
"\n"
222+
"\n"
223+
"::"
213224

214225
#: ../../tutorial/floatingpoint.rst:127
215226
msgid ""
216227
"Though the numbers cannot be made closer to their intended exact values, "
217228
"the :func:`round` function can be useful for post-rounding so that results "
218229
"with inexact values become comparable to one another::"
219230
msgstr ""
231+
"雖然數字不會再更接近他們的精準數值,但 :func:`round` 函式可以對事後的捨入有所"
232+
"幫助,如此一來,不精確的數值就變得可以互相比較:\n"
233+
"\n"
234+
"::"
220235

221236
#: ../../tutorial/floatingpoint.rst:134
222237
msgid ""
@@ -226,6 +241,9 @@ msgid ""
226241
"www.lahey.com/float.htm>`_ for a more complete account of other common "
227242
"surprises."
228243
msgstr ""
244+
"二進位浮點數架構擁有很多這樣的驚喜。底下的「表示法錯誤」章節,詳細的解釋了"
245+
"「0.1」的問題。如果想要更多其他常見驚喜的完整資料,可以參考 `浮點數的危險 "
246+
"<http://www.lahey.com/float.htm>`_。"
229247

230248
#: ../../tutorial/floatingpoint.rst:139
231249
msgid ""

0 commit comments

Comments
 (0)