@@ -73,6 +73,11 @@ msgid ""
7373"meth:`~object.__index__`. This method returns ``-1.0`` upon failure, so one "
7474"should call :c:func:`PyErr_Occurred` to check for errors."
7575msgstr ""
76+ "回傳 *pyfloat* 內容的 C :c:expr:`double` 表示形式。"
77+ "如果 *pyfloat* 不是 Python 浮點數物件,但具有 :meth:`~object.__float__` 方法,"
78+ "則會先呼叫此方法將 *pyfloat* 轉換為浮點數。"
79+ "如果未定義 :meth:`!__float__`,則會用後備方法 :meth:`~object.__index__`。"
80+ "此方法在失敗時回傳 ``-1.0``,因此應該呼叫 :c:func:`PyErr_Occurred` 來檢查錯誤。"
7681
7782#: ../../c-api/float.rst:54
7883msgid "Use :meth:`~object.__index__` if available."
@@ -148,18 +153,19 @@ msgid ""
148153"Return :data:`math.inf` or :data:`-math.inf <math.inf>` from a function, "
149154"depending on the sign of *sign*."
150155msgstr ""
156+ "根據 *sign* 的正負號,從函式回傳 :data:`math.inf` 或 :data:`-math.inf <math.inf>`。"
151157
152158#: ../../c-api/float.rst:93
153159msgid "On most platforms, this is equivalent to the following::"
154- msgstr ""
160+ msgstr "在大多數平台上,這相當於以下內容: :: "
155161
156162#: ../../c-api/float.rst:95
157163msgid "return PyFloat_FromDouble(copysign(INFINITY, sign));"
158- msgstr ""
164+ msgstr "return PyFloat_FromDouble(copysign(INFINITY, sign)); "
159165
160166#: ../../c-api/float.rst:99
161167msgid "Pack and Unpack functions"
162- msgstr ""
168+ msgstr "打包和解包函式 "
163169
164170#: ../../c-api/float.rst:101
165171msgid ""
@@ -169,6 +175,9 @@ msgid ""
169175"c:expr:`double` from such a bytes string. The suffix (2, 4 or 8) specifies "
170176"the number of bytes in the bytes string."
171177msgstr ""
178+ "打包和解包函式提供了一種有效的跨平台方式,來將浮點數值儲存為位元組字串。"
179+ "打包例程從 C :c:expr:`double` 產生位元組字串,而解包例程則從這樣的位元組字串產生 "
180+ "C :c:expr:`double`。後綴(2、4 或 8)標示了位元組字串中的位元組數。"
172181
173182#: ../../c-api/float.rst:107
174183msgid ""