Repository navigation
Expand file tree
/
Copy pathfloat.po
More file actions
197 lines (139 loc) · 19 KB
/
Copy pathfloat.po
File metadata and controls
197 lines (139 loc) · 19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Alireza Shabani (Revisto) <theRevisto@gmail.com>, 2025
# Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-10-22 14:54+0000\n"
"PO-Revision-Date: 2026-09-15 13:21+0330\n"
"Last-Translator: Sepehr Rasouli <sepehrrasouli06@gmail.com>, 2026\n"
"Language-Team: Persian (https://github.com/python/python-docs-fa/)\n"
"Language: fa\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 3.6\n"
msgid "Floating-Point Objects"
msgstr "اشیاء ممیز شناور"
msgid "This subtype of :c:type:`PyObject` represents a Python floating-point object."
msgstr "این زیرنوع از :c:type:`PyObject` نمایانگر یک شیء ممیز شناور پایتون است."
msgid "This instance of :c:type:`PyTypeObject` represents the Python floating-point type. This is the same object as :class:`float` in the Python layer."
msgstr "این نمونه از :c:type:`PyTypeObject` نوع ممیز شناور پایتون را نشان میدهد. این همان شیء :class:`float` در لایهی پایتون است."
msgid "Return true if its argument is a :c:type:`PyFloatObject` or a subtype of :c:type:`PyFloatObject`. This function always succeeds."
msgstr "اگر آرگومان آن یک :c:type:`PyFloatObject` یا زیرنوعی از :c:type:`PyFloatObject` باشد، مقدار درست را برمیگرداند. این تابع همیشه با موفقیت انجام میشود."
msgid "Return true if its argument is a :c:type:`PyFloatObject`, but not a subtype of :c:type:`PyFloatObject`. This function always succeeds."
msgstr "اگر آرگومان آن یک :c:type:`PyFloatObject` باشد، اما زیرنوعی از :c:type:`PyFloatObject` نباشد، مقدار true برمیگرداند. این تابع همیشه موفق میشود."
msgid "Create a :c:type:`PyFloatObject` object based on the string value in *str*, or ``NULL`` on failure."
msgstr "ایجاد یک شیء :c:type:`PyFloatObject` بر اساس مقدار رشته در *str*، یا ``NULL`` در صورت شکست."
msgid "Create a :c:type:`PyFloatObject` object from *v*, or ``NULL`` on failure."
msgstr "یک شیء :c:type:`PyFloatObject` از *v* میسازد، یا در صورت شکست ``NULL``."
msgid "Return a C :c:expr:`double` representation of the contents of *pyfloat*. If *pyfloat* is not a Python floating-point object but has a :meth:`~object.__float__` method, this method will first be called to convert *pyfloat* into a float. If :meth:`!__float__` is not defined then it falls back to :meth:`~object.__index__`. This method returns ``-1.0`` upon failure, so one should call :c:func:`PyErr_Occurred` to check for errors."
msgstr "یک نمایش :c:expr:`double` در C از محتویات *pyfloat* برمیگرداند. اگر *pyfloat* یک شیء ممیز شناور پایتون نباشد اما متد :meth:`~object.__float__` را داشته باشد، این متد ابتدا برای تبدیل *pyfloat* به یک عدد ممیز شناور فراخوانی میشود. اگر :meth:`!__float__` تعریفنشده باشد، به :meth:`~object.__index__` بازمیگردد. این متد در صورت شکست ``-1.0`` را برمیگرداند، بنابراین برای بررسی خطاها باید :c:func:`PyErr_Occurred` را فراخوانی کنید."
msgid "Use :meth:`~object.__index__` if available."
msgstr "در صورت وجود، از :meth:`~object.__index__` استفاده کنید."
msgid "Return a C :c:expr:`double` representation of the contents of *pyfloat*, but without error checking."
msgstr "نمایش C :c:expr:`double` از محتویات *pyfloat* را برمیگرداند، اما بدون بررسی خطا."
msgid "Return a structseq instance which contains information about the precision, minimum and maximum values of a float. It's a thin wrapper around the header file :file:`float.h`."
msgstr "یک نمونه از دنباله ساختاری برمیگرداند که اطلاعاتی دربارهی دقت و مقادیر کمینه و بیشینهی یک عدد ممیز شناور در بر دارد. این یک دربرگیرندهی نازک حول پروندهی سرآیند :file:`float.h` است."
msgid "Return the maximum representable finite float *DBL_MAX* as C :c:expr:`double`."
msgstr "بزرگترین عدد ممیز شناور محدود قابل نمایش *DBL_MAX* را بهصورت :c:expr:`double` در C برمیگرداند."
msgid "Return the minimum normalized positive float *DBL_MIN* as C :c:expr:`double`."
msgstr "کمترین عدد اعشاری مثبت نرمالشده *DBL_MIN* را بهصورت :c:expr:`double` در C برمیگرداند."
msgid "This macro expands to a constant expression of type :c:expr:`double`, that represents the positive infinity."
msgstr "این ماکرو به یک عبارت ثابت از نوع :c:expr:`double` بسط مییابد که بینهایت مثبت را نشان میدهد."
msgid "On most platforms, this is equivalent to the :c:macro:`!INFINITY` macro from the C11 standard ``<math.h>`` header."
msgstr "در بیشتر پلتفرمها، این معادل ماکروی :c:macro:`!INFINITY` از سرآیند ``<math.h>`` استاندارد C11 است."
msgid "This macro expands to a constant expression of type :c:expr:`double`, that represents a quiet not-a-number (qNaN) value."
msgstr "این ماکرو به عبارت ثابتی از نوع :c:expr:`double` بسط مییابد که نشاندهندهی مقدار عدد-نیست ساکت (qNaN) است."
msgid "On most platforms, this is equivalent to the :c:macro:`!NAN` macro from the C11 standard ``<math.h>`` header."
msgstr "در بیشتر پلتفرمها، این معادل ماکروی :c:macro:`!NAN` از سرآیند ``<math.h>`` استاندارد C11 است."
msgid "Equivalent to :c:macro:`!INFINITY`."
msgstr "معادل :c:macro:`!INFINITY` است."
msgid "The macro is :term:`soft deprecated`."
msgstr "این ماکرو :term:`soft deprecated` است."
msgid "The definition (accurate for a :c:expr:`double` type) of the :data:`math.e` constant."
msgstr "تعریف ثابت :data:`math.e` (دقیق برای نوع :c:expr:`double`)."
msgid "High precision (long double) definition of :data:`~math.e` constant."
msgstr "تعریف با دقت بالا (long double) ثابت :data:`~math.e`."
msgid "The definition (accurate for a :c:expr:`double` type) of the :data:`math.pi` constant."
msgstr "تعریف ثابت :data:`math.pi` (که برای نوع :c:expr:`double` دقیق است)."
msgid "High precision (long double) definition of :data:`~math.pi` constant."
msgstr "تعریف ثابت :data:`~math.pi` با دقت بالا (long double)."
msgid "The definition (accurate for a :c:expr:`double` type) of the :data:`math.tau` constant."
msgstr "تعریف ثابت :data:`math.tau` (دقیق برای نوع :c:expr:`double`)."
msgid "Return :data:`math.nan` from a function."
msgstr "برگرداندن :data:`math.nan` از یک تابع."
msgid "On most platforms, this is equivalent to ``return PyFloat_FromDouble(NAN)``."
msgstr "در اکثر پلتفرمها، این معادل ``return PyFloat_FromDouble(NAN)`` است."
msgid "Return :data:`math.inf` or :data:`-math.inf <math.inf>` from a function, depending on the sign of *sign*."
msgstr "برگرداندن :data:`math.inf` یا :data:`-math.inf <math.inf>` از یک تابع، بسته به علامت *sign*."
msgid "On most platforms, this is equivalent to the following::"
msgstr "در اغلب پلتفرمها، این معادل موارد زیر است::"
msgid "return PyFloat_FromDouble(copysign(INFINITY, sign));"
msgstr "return PyFloat_FromDouble(copysign(INFINITY, sign));"
msgid "Return ``1`` if the given floating-point number *X* is finite, that is, it is normal, subnormal or zero, but not infinite or NaN. Return ``0`` otherwise."
msgstr "اگر عدد ممیز شناور دادهشده *X* متناهی باشد، یعنی نرمال، زیرنرمال یا صفر باشد، اما بینهایت یا NaN نباشد، ``1`` را برمیگرداند. در غیر این صورت ``0`` را برمیگرداند."
msgid "The macro is :term:`soft deprecated`. Use :c:macro:`!isfinite` instead."
msgstr "این ماکرو :term:`نرممنسوخ (soft deprecated) <soft deprecated>` است. بهجای آن از :c:macro:`!isfinite` استفاده کنید."
msgid "Return ``1`` if the given floating-point number *X* is positive or negative infinity. Return ``0`` otherwise."
msgstr "اگر عدد ممیز شناورِ دادهشدهی *X* بینهایت مثبت یا منفی باشد، ``1`` را برمیگرداند. در غیر این صورت ``0`` را برمیگرداند."
msgid "The macro is :term:`soft deprecated`. Use :c:macro:`!isinf` instead."
msgstr "این ماکرو :term:`منسوخ نرم <soft deprecated>` است. بهجای آن از :c:macro:`!isinf` استفاده کنید."
msgid "Return ``1`` if the given floating-point number *X* is a not-a-number (NaN) value. Return ``0`` otherwise."
msgstr "اگر عدد ممیز شناورِ دادهشدهی *X* مقداری غیرعددی (NaN) باشد، ``1`` را برمیگرداند. در غیر این صورت ``0`` را برمیگرداند."
msgid "The macro is :term:`soft deprecated`. Use :c:macro:`!isnan` instead."
msgstr "این ماکرو :term:`soft deprecated` است. بهجای آن از :c:macro:`!isnan` استفاده کنید."
msgid "Pack and Unpack functions"
msgstr "توابع بستهبندی و باز کردن بستهبندی"
msgid "The pack and unpack functions provide an efficient platform-independent way to store floating-point values as byte strings. The Pack routines produce a bytes string from a C :c:expr:`double`, and the Unpack routines produce a C :c:expr:`double` from such a bytes string. The suffix (2, 4 or 8) specifies the number of bytes in the bytes string."
msgstr "توابع pack و unpack راهی کارآمد و مستقل از پلتفرم برای ذخیرهسازی مقادیر ممیز شناور بهصورت رشتههای بایتی فراهم میکنند. روالهای Pack از یک :c:expr:`double` در C یک رشته بایتی تولید میکنند و روالهای Unpack از چنین رشته بایتی، یک :c:expr:`double` در C تولید میکنند. پسوند (۲، ۴ یا ۸) تعداد بایتهای رشته بایتی را مشخص میکند."
msgid "On platforms that appear to use IEEE 754 formats these functions work by copying bits. On other platforms, the 2-byte format is identical to the IEEE 754 binary16 half-precision format, the 4-byte format (32-bit) is identical to the IEEE 754 binary32 single precision format, and the 8-byte format to the IEEE 754 binary64 double precision format, although the packing of INFs and NaNs (if such things exist on the platform) isn't handled correctly, and attempting to unpack a bytes string containing an IEEE INF or NaN will raise an exception."
msgstr "در پلتفرمهایی که به نظر میرسد از قالبهای IEEE 754 استفاده میکنند، این توابع با کپی کردن بیتها کار میکنند. در پلتفرمهای دیگر، قالب ۲ بایتی با قالب دقت نصف binary16 در IEEE 754 یکسان است، قالب ۴ بایتی (۳۲ بیتی) با قالب دقت منفرد binary32 در IEEE 754 یکسان است و قالب ۸ بایتی با قالب دقت مضاعف binary64 در IEEE 754 یکسان است؛ هرچند بستهبندی مقادیر INF و NaN (اگر چنین مقادیری در پلتفرم وجود داشته باشند) بهدرستی مدیریت نمیشود و تلاش برای واگشایی رشته بایتی حاوی INF یا NaN مطابق با IEEE، منجر به ایجاد استثنا میشود."
msgid "Note that NaN type may not be preserved on IEEE platforms (signaling NaNs become quiet NaNs), for example on x86 systems in 32-bit mode."
msgstr "توجه داشته باشید که نوع NaN ممکن است روی سکوهای IEEE حفظ نشود (NaNهای سیگنالدهنده به NaNهای خاموش (quiet NaN) تبدیل میشوند)، برای مثال روی سیستمهای x86 در حالت ۳۲ بیتی."
msgid "On non-IEEE platforms with more precision, or larger dynamic range, than IEEE 754 supports, not all values can be packed; on non-IEEE platforms with less precision, or smaller dynamic range, not all values can be unpacked. What happens in such cases is partly accidental (alas)."
msgstr "در پلتفرمهای غیر IEEE که دقتی بیشتر از آنچه IEEE 754 از آن پشتیبانی میکند دارند، یا گستره پویایی بزرگتری دارند، نمیتوان همه مقادیر را بستهبندی کرد؛ در پلتفرمهای غیر IEEE با دقت کمتر، یا گستره پویایی کوچکتر، نمیتوان همه مقادیر را واگشایی کرد. آنچه در چنین مواردی رخ میدهد تا حدی اتفاقی است (متأسفانه)."
msgid "Pack functions"
msgstr "توابع بستهبندی"
msgid "The pack routines write 2, 4 or 8 bytes, starting at *p*. *le* is an :c:expr:`int` argument, non-zero if you want the bytes string in little-endian format (exponent last, at ``p+1``, ``p+3``, or ``p+6`` and ``p+7``), zero if you want big-endian format (exponent first, at *p*). Use the :c:macro:`PY_LITTLE_ENDIAN` constant to select the native endian: it is equal to ``0`` on big endian processor, or ``1`` on little endian processor."
msgstr "روالهای بستهبندی کردن ۲، ۴ یا ۸ بایت را از *p* به بعد مینویسند. *le* یک آرگومان :c:expr:`int` است، و اگر رشتهی بایتها را در قالب کوچکاندیان (توان در انتها، در ``p+1``، ``p+3``، یا ``p+6`` و ``p+7``) بخواهید غیرصفر است، و اگر قالب بزرگاندیان (توان در ابتدا، در *p*) را بخواهید صفر است. از ثابت :c:macro:`PY_LITTLE_ENDIAN` برای انتخاب اندیان بومی استفاده کنید: این ثابت روی پردازندهی بزرگاندیان برابر با ``0``، و روی پردازندهی کوچکاندیان برابر با ``1`` است."
msgid "Return value: ``0`` if all is OK, ``-1`` if error (and an exception is set, most likely :exc:`OverflowError`)."
msgstr "مقدار بازگشتی: ``0`` در صورت موفقیت، ``-1`` در صورت خطا (و استثنا تنظیمشده است، به احتمال زیاد :exc:`OverflowError`)."
msgid "There are two problems on non-IEEE platforms:"
msgstr "دو مشکل در پلتفرمهای غیر IEEE وجود دارد:"
msgid "What this does is undefined if *x* is a NaN or infinity."
msgstr "اگر *x* یک NaN یا بینهایت باشد، آنچه این انجام میدهد تعریفنشده است."
msgid "``-0.0`` and ``+0.0`` produce the same bytes string."
msgstr "``-0.0`` و ``+0.0`` همان رشته بایت را تولید میکنند."
msgid "Pack a C double as the IEEE 754 binary16 half-precision format."
msgstr "یک ممیز شناور با دقت مضاعف در C را به قالب binary16 با دقت نصف IEEE 754 بستهبندی میکند."
msgid "Pack a C double as the IEEE 754 binary32 single precision format."
msgstr "یک ممیز شناور با دقت مضاعف در C را به قالب IEEE 754 binary32 با دقت منفرد بستهبندی میکند."
msgid "Pack a C double as the IEEE 754 binary64 double precision format."
msgstr "یک double زبان C را به قالب دقت مضاعف binary64 استاندارد IEEE 754 بستهبندی میکند."
msgid "Unpack functions"
msgstr "توابع واگشایی"
msgid "The unpack routines read 2, 4 or 8 bytes, starting at *p*. *le* is an :c:expr:`int` argument, non-zero if the bytes string is in little-endian format (exponent last, at ``p+1``, ``p+3`` or ``p+6`` and ``p+7``), zero if big-endian (exponent first, at *p*). Use the :c:macro:`PY_LITTLE_ENDIAN` constant to select the native endian: it is equal to ``0`` on big endian processor, or ``1`` on little endian processor."
msgstr "روالهای بازکردن بسته ۲، ۴ یا ۸ بایت را با شروع از *p* میخوانند. آرگومان *le* یک آرگومان از نوع :c:expr:`int` است، و اگر رشتهی بایتها در قالب کوچکاندیان باشد (توان در آخر، در ``p+1``، ``p+3`` یا ``p+6`` و ``p+7``) ناصفر، و اگر در قالب بزرگاندیان باشد (توان در اول، در *p*) صفر است. از ثابت :c:macro:`PY_LITTLE_ENDIAN` برای انتخاب ترتیب بایتهای بومی استفاده کنید: این ثابت روی پردازندهی بزرگاندیان برابر با ``0``، و روی پردازندهی کوچکاندیان برابر با ``1`` است."
msgid "Return value: The unpacked double. On error, this is ``-1.0`` and :c:func:`PyErr_Occurred` is true (and an exception is set, most likely :exc:`OverflowError`)."
msgstr "مقدار بازگشتی: ممیز شناور با دقت مضاعفِ واگشاییشده. در صورت خطا، این مقدار ``-1.0`` است و :c:func:`PyErr_Occurred` درست است (و استثنایی تنظیمشده است که به احتمال زیاد :exc:`OverflowError` است)."
msgid "Note that on a non-IEEE platform this will refuse to unpack a bytes string that represents a NaN or infinity."
msgstr "توجه داشته باشید که روی یک پلتفرم غیر IEEE، این از واگشایی کردن رشتهی بایتی که نمایانگر NaN یا بینهایت است، خودداری خواهد کرد."
msgid "Unpack the IEEE 754 binary16 half-precision format as a C double."
msgstr "قالب IEEE 754 binary16 با دقت نصف را بهصورت یک double در C واگشایی میکند."
msgid "Unpack the IEEE 754 binary32 single precision format as a C double."
msgstr "واگشایی کردن قالب دقت منفرد binary32 از IEEE 754 بهصورت double در C."
msgid "Unpack the IEEE 754 binary64 double precision format as a C double."
msgstr "قالب دقت مضاعف binary64 در استاندارد IEEE 754 را بهصورت یک double در C واگشایی میکند."
msgid "object"
msgstr "شیء"
msgid "floating-point"
msgstr "ممیز شناور"