Skip to content

Commit baf4844

Browse files
[po] auto sync
1 parent 4e4ed20 commit baf4844

5 files changed

Lines changed: 48 additions & 7 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "1.56%", "updated_at": "2025-12-09T19:17:33Z"}
1+
{"translation": "1.58%", "updated_at": "2025-12-09T20:23:52Z"}

tutorial/stdlib2.mo

4.99 KB
Binary file not shown.

tutorial/stdlib2.po

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -757,45 +757,58 @@ msgstr ""
757757

758758
#: ../../tutorial/stdlib2.rst:356
759759
msgid "Decimal Floating-Point Arithmetic"
760-
msgstr ""
760+
msgstr "Десятичная арифметика с плавающей точкой"
761761

762762
#: ../../tutorial/stdlib2.rst:358
763763
msgid ""
764764
"The :mod:`decimal` module offers a :class:`~decimal.Decimal` datatype for "
765765
"decimal floating-point arithmetic. Compared to the built-in :class:`float` "
766766
"implementation of binary floating point, the class is especially helpful for"
767767
msgstr ""
768+
"Модуль :mod:`decimal` предлагает тип данных :class:`~decimal.Decimal` для "
769+
"десятичной арифметики с плавающей точкой. По сравнению со встроенным типом "
770+
":class:`float`, реализующим двоичные числа с плавающей точкой, этот класс "
771+
"особенно полезен для"
768772

769773
#: ../../tutorial/stdlib2.rst:362
770774
msgid ""
771775
"financial applications and other uses which require exact decimal "
772776
"representation,"
773777
msgstr ""
778+
"финансовых приложений и других случаев, требующих точного десятичного "
779+
"представления,"
774780

775781
#: ../../tutorial/stdlib2.rst:364
776782
msgid "control over precision,"
777-
msgstr ""
783+
msgstr "контроля точности,"
778784

779785
#: ../../tutorial/stdlib2.rst:365
780786
msgid "control over rounding to meet legal or regulatory requirements,"
781787
msgstr ""
788+
"контроля округления для соответствия законодательным или нормативным "
789+
"требованиям,"
782790

783791
#: ../../tutorial/stdlib2.rst:366
784792
msgid "tracking of significant decimal places, or"
785-
msgstr ""
793+
msgstr "отслеживания значащих десятичных разрядов или"
786794

787795
#: ../../tutorial/stdlib2.rst:367
788796
msgid ""
789797
"applications where the user expects the results to match calculations done "
790798
"by hand."
791799
msgstr ""
800+
"приложений, в которых пользователь ожидает, что результаты совпадут с "
801+
"расчётами, выполненными вручную."
792802

793803
#: ../../tutorial/stdlib2.rst:370
794804
msgid ""
795805
"For example, calculating a 5% tax on a 70 cent phone charge gives different "
796806
"results in decimal floating point and binary floating point. The difference "
797807
"becomes significant if the results are rounded to the nearest cent::"
798808
msgstr ""
809+
"Например, расчёт налога в размере 5% от счёта за телефон на 70 центов даёт "
810+
"разные результаты в десятичном и двоичном представлении чисел с плавающей "
811+
"точкой. Разница становится значимой, если результаты округлить до цента:"
799812

800813
#: ../../tutorial/stdlib2.rst:374
801814
msgid ""
@@ -805,6 +818,11 @@ msgid ""
805818
">>> round(.70 * 1.05, 2)\n"
806819
"0.73"
807820
msgstr ""
821+
">>> from decimal import *\n"
822+
">>> round(Decimal('0.70') * Decimal('1.05'), 2)\n"
823+
"Decimal('0.74')\n"
824+
">>> round(.70 * 1.05, 2)\n"
825+
"0.73"
808826

809827
#: ../../tutorial/stdlib2.rst:380
810828
msgid ""
@@ -814,13 +832,22 @@ msgid ""
814832
"issues that can arise when binary floating point cannot exactly represent "
815833
"decimal quantities."
816834
msgstr ""
835+
"Результат :class:`~decimal.Decimal` сохраняет конечный ноль, автоматически "
836+
"выводя точность до четырёх значащих цифр в дробной части на основе "
837+
"множителей с двумя знаками в дробной части. Класс Decimal воспроизводит "
838+
"математику так, как она выполняется вручную, и позволяет избежать проблем, "
839+
"которые могут возникнуть, когда двоичные числа с плавающей точкой не могут "
840+
"точно представить десятичные величины."
817841

818842
#: ../../tutorial/stdlib2.rst:386
819843
msgid ""
820844
"Exact representation enables the :class:`~decimal.Decimal` class to perform "
821845
"modulo calculations and equality tests that are unsuitable for binary "
822846
"floating point::"
823847
msgstr ""
848+
"Точное представление позволяет классу :class:`~decimal.Decimal` выполнять "
849+
"вычисления по модулю и проверки равенства, которые непригодны для двоичных "
850+
"чисел с плавающей точкой::"
824851

825852
#: ../../tutorial/stdlib2.rst:390
826853
msgid ""
@@ -834,16 +861,30 @@ msgid ""
834861
">>> 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 == 1.0\n"
835862
"False"
836863
msgstr ""
864+
">>> Decimal('1.00') % Decimal('.10')\n"
865+
"Decimal('0.00')\n"
866+
">>> 1.00 % 0.10\n"
867+
"0.09999999999999995\n"
868+
"\n"
869+
">>> sum([Decimal('0.1')]*10) == Decimal('1.0')\n"
870+
"True\n"
871+
">>> 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 == 1.0\n"
872+
"False"
837873

838874
#: ../../tutorial/stdlib2.rst:400
839875
msgid ""
840876
"The :mod:`decimal` module provides arithmetic with as much precision as "
841877
"needed::"
842878
msgstr ""
879+
"Модуль :mod:`decimal` обеспечивает арифметические операции с необходимой "
880+
"точностью::"
843881

844882
#: ../../tutorial/stdlib2.rst:402
845883
msgid ""
846884
">>> getcontext().prec = 36\n"
847885
">>> Decimal(1) / Decimal(7)\n"
848886
"Decimal('0.142857142857142857142857142857142857')"
849887
msgstr ""
888+
">>> getcontext().prec = 36\n"
889+
">>> Decimal(1) / Decimal(7)\n"
890+
"Decimal('0.142857142857142857142857142857142857')"

tutorial/venv.mo

154 Bytes
Binary file not shown.

tutorial/venv.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.14\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-05-09 14:19+0000\n"
14+
"POT-Creation-Date: 2025-12-09 14:17+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:02+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Russian (https://app.transifex.com/python-doc/teams/5390/ru/)\n"
@@ -23,11 +23,11 @@ msgstr ""
2323

2424
#: ../../tutorial/venv.rst:6
2525
msgid "Virtual Environments and Packages"
26-
msgstr ""
26+
msgstr "Виртуальное окружение и пакеты"
2727

2828
#: ../../tutorial/venv.rst:9
2929
msgid "Introduction"
30-
msgstr ""
30+
msgstr "Введение"
3131

3232
#: ../../tutorial/venv.rst:11
3333
msgid ""

0 commit comments

Comments
 (0)