Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 929a9ad

Browse files
committed
[po] auto sync bot
1 parent 5dc3bfa commit 929a9ad

1 file changed

Lines changed: 24 additions & 15 deletions

File tree

tutorial/floatingpoint.po

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2018, Python Software Foundation
2+
# Copyright (C) 2001-2019, Python Software Foundation
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
77
# ww song <[email protected]>, 2018
8-
# Meng Du <alphanow@gmail.com>, 2018
8+
# Freesand Leo <yuqinju@163.com>, 2019
99
#
1010
#, fuzzy
1111
msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.7\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2018-06-30 05:56+0900\n"
15+
"POT-Creation-Date: 2019-01-01 10:14+0900\n"
1616
"PO-Revision-Date: 2017-02-16 23:40+0000\n"
17-
"Last-Translator: Meng Du <alphanow@gmail.com>, 2018\n"
17+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2019\n"
1818
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1919
"MIME-Version: 1.0\n"
2020
"Content-Type: text/plain; charset=UTF-8\n"
@@ -30,27 +30,28 @@ msgstr "浮点算术:争议和限制 "
3030
msgid ""
3131
"Floating-point numbers are represented in computer hardware as base 2 "
3232
"(binary) fractions. For example, the decimal fraction ::"
33-
msgstr "浮点数在计算机硬件中以二进制分数表示。举例而言,十进制分数 ::"
33+
msgstr "浮点数在计算机硬件中表示为以 2 为基数(二进制)的小数。举例而言,十进制的小数 ::"
3434

3535
#: ../../tutorial/floatingpoint.rst:19
3636
msgid ""
3737
"has value 1/10 + 2/100 + 5/1000, and in the same way the binary fraction ::"
38-
msgstr "等于 1/10 + 2/100 + 5/1000 ,同理,二进制分数 ::"
38+
msgstr "等于 1/10 + 2/100 + 5/1000 ,同理,二进制的小数 ::"
3939

4040
#: ../../tutorial/floatingpoint.rst:23
4141
msgid ""
4242
"has value 0/2 + 0/4 + 1/8. These two fractions have identical values, the "
4343
"only real difference being that the first is written in base 10 fractional "
4444
"notation, and the second in base 2."
45-
msgstr "等于0/2 + 0/4 + 1/8。这两个分数的值相同,唯一真正的区别是第一个用十进制表示法写入,第二个用二进制表示。"
45+
msgstr "等于0/2 + 0/4 + 1/8。这两个小数具有相同的值,唯一真正的区别是第一个是以 10 为基数的小数表示法,第二个则是 2 为基数。"
4646

4747
#: ../../tutorial/floatingpoint.rst:27
4848
msgid ""
4949
"Unfortunately, most decimal fractions cannot be represented exactly as "
5050
"binary fractions. A consequence is that, in general, the decimal floating-"
5151
"point numbers you enter are only approximated by the binary floating-point "
5252
"numbers actually stored in the machine."
53-
msgstr "不幸的是,大多数的十进制数都不能完全表示为二进制分数。这导致,大多数情况下,你输入的十进制浮点数都只能近似地以二进制浮点数储存在计算机中。"
53+
msgstr ""
54+
"不幸的是,大多数的十进制小数都不能精确地表示为二进制小数。这导致在大多数情况下,你输入的十进制浮点数都只能近似地以二进制浮点数形式储存在计算机中。"
5455

5556
#: ../../tutorial/floatingpoint.rst:32
5657
msgid ""
@@ -75,7 +76,8 @@ msgid ""
7576
" decimal value 0.1 cannot be represented exactly as a base 2 fraction. In "
7677
"base 2, 1/10 is the infinitely repeating fraction ::"
7778
msgstr ""
78-
"同样的道理,无论你写下多少的二进制数字,十进制分数 0.1 都无法恰好表示为一个二进制分数。在二进制下, 1/10 是一个无限循环小数 ::"
79+
"同样的道理,无论你使用多少位以 2 为基数的数码,十进制的 0.1 都无法精确地表示为一个以 2 为基数的小数。 在以 2 为基数的情况下, 1/10 "
80+
"是一个无限循环小数 ::"
7981

8082
#: ../../tutorial/floatingpoint.rst:55
8183
msgid ""
@@ -86,7 +88,7 @@ msgid ""
8688
"fraction is ``3602879701896397 / 2 ** 55`` which is close to but not exactly"
8789
" equal to the true value of 1/10."
8890
msgstr ""
89-
"在任何一个位置停下,你都只能得到一个近似值。因此,在今天的大部分架构上,浮点数都只能近似地使用二进制分数表达,分子使用每 8 字节的前 53 "
91+
"在任何一个位置停下,你都只能得到一个近似值。因此,在今天的大部分架构上,浮点数都只能近似地使用二进制小数表示,对应分数的分子使用每 8 字节的前 53 "
9092
"位表示,分母则表示为 2 的幂次。在 1/10 这个例子中,相应的二进制分数是 ``3602879701896397 / 2 ** 55`` ,它很接近"
9193
" 1/10 ,但并不是 1/10 。"
9294

@@ -123,7 +125,7 @@ msgid ""
123125
"values share the same approximation, any one of them could be displayed "
124126
"while still preserving the invariant ``eval(repr(x)) == x``."
125127
msgstr ""
126-
"有趣的是,有许多不同的十进制数共享相同的最接近的近似二进制分数。例如, ``0.1`` 、 ``0.10000000000000001`` 、 "
128+
"有趣的是,有许多不同的十进制数共享相同的最接近的近似二进制小数。例如, ``0.1`` 、 ``0.10000000000000001`` 、 "
127129
"``0.1000000000000000055511151231257827021181583404541015625`` 全都近似于 "
128130
"``3602879701896397 / 2 ** 55`` 。由于所有这些十进制值都具有相同的近似值,因此可以显示其中任何一个,同时仍然保留不变的 "
129131
"``eval(repr(x)) == x`` 。"
@@ -135,6 +137,9 @@ msgid ""
135137
"Starting with Python 3.1, Python (on most systems) is now able to choose the"
136138
" shortest of these and simply display ``0.1``."
137139
msgstr ""
140+
"在历史上,Python 提示符和内置的 :func:`repr` 函数会选择具有 17 位有效数字的来显示,即 "
141+
"``0.10000000000000001``。 从 Python 3.1 开始,Python(在大多数系统上)现在能够选择这些表示中最短的并简单地显示"
142+
" ``0.1`` 。"
138143

139144
#: ../../tutorial/floatingpoint.rst:93
140145
msgid ""
@@ -144,38 +149,42 @@ msgid ""
144149
"point arithmetic (although some languages may not *display* the difference "
145150
"by default, or in all output modes)."
146151
msgstr ""
152+
"请注意这种情况是二进制浮点数的本质特性:它不是 Python 的错误,也不是你代码中的错误。 "
153+
"你会在所有支持你的硬件中的浮点运算的语言中发现同样的情况(虽然某些语言在默认状态或所有输出模块下都不会 *显示* 这种差异)。"
147154

148155
#: ../../tutorial/floatingpoint.rst:99
149156
msgid ""
150157
"For more pleasant output, you may wish to use string formatting to produce a"
151158
" limited number of significant digits::"
152-
msgstr ""
159+
msgstr "想要更美观的输出,你可能会希望使用字符串格式化来产生限定长度的有效位数::"
153160

154161
#: ../../tutorial/floatingpoint.rst:111
155162
msgid ""
156163
"It's important to realize that this is, in a real sense, an illusion: you're"
157164
" simply rounding the *display* of the true machine value."
158-
msgstr ""
165+
msgstr "必须重点了解的是,这在实际上只是一个假象:你只是将真正的机器码值进行了舍入操作再 *显示* 而已。"
159166

160167
#: ../../tutorial/floatingpoint.rst:114
161168
msgid ""
162169
"One illusion may beget another. For example, since 0.1 is not exactly 1/10,"
163170
" summing three values of 0.1 may not yield exactly 0.3, either::"
164-
msgstr ""
171+
msgstr "一个假象还可能导致另一个假象。 例如,由于这个 0.1 并非真正的 1/10,将三个 0.1 的值相加也不一定能恰好得到 0.3::"
165172

166173
#: ../../tutorial/floatingpoint.rst:120
167174
msgid ""
168175
"Also, since the 0.1 cannot get any closer to the exact value of 1/10 and 0.3"
169176
" cannot get any closer to the exact value of 3/10, then pre-rounding with "
170177
":func:`round` function cannot help::"
171178
msgstr ""
179+
"而且,由于这个 0.1 无法精确表示 1/10 的值而这个 0.3 也无法精确表示 3/10 的值,使用 :func:`round` "
180+
"函数进行预先舍入也是没用的::"
172181

173182
#: ../../tutorial/floatingpoint.rst:127
174183
msgid ""
175184
"Though the numbers cannot be made closer to their intended exact values, the"
176185
" :func:`round` function can be useful for post-rounding so that results with"
177186
" inexact values become comparable to one another::"
178-
msgstr ""
187+
msgstr "虽然这些小数无法精确表示其所要代表的实际值,:func:`round` 函数还是可以用来“事后舍入”,使得实际的结果值可以做相互比较::"
179188

180189
#: ../../tutorial/floatingpoint.rst:134
181190
msgid ""

0 commit comments

Comments
 (0)