From 8e95f5bdd54ae19eb30c47be61e19b4af3c1f7b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Dailloux?= Date: Fri, 5 Oct 2018 17:54:59 +0200 Subject: [PATCH] some more --- library/decimal.po | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/library/decimal.po b/library/decimal.po index d380262b..996be42a 100644 --- a/library/decimal.po +++ b/library/decimal.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.6\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-06-28 15:29+0200\n" -"PO-Revision-Date: 2018-10-05 16:03+0200\n" +"PO-Revision-Date: 2018-10-05 17:45+0200\n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" @@ -71,7 +71,7 @@ msgid "" "accumulate. For this reason, decimal is preferred in accounting applications " "which have strict equality invariants." msgstr "" -"Ces inexactitudes ont des conséquences en arithmétiques. En base décimale à " +"Ces inexactitudes ont des conséquences en arithmétique. En base décimale à " "virgule flottante, ``0.1 + 0.1 + 0.1 - 0.3`` est exactement égal à zéro. En " "virgule flottante binaire, l'ordinateur l'évalue à :const:" "`5.5511151231257827e-017`. Bien que très proche de zéro, cette différence " @@ -495,6 +495,12 @@ msgid "" "compared, sorted, and coerced to another type (such as :class:`float` or :" "class:`int`)." msgstr "" +"Les objets Decimal partagent beaucoup de propriétés avec les autres types " +"intégrés tels que :class:`float` et :class:`int`. Toutes les opérations " +"mathématiques et méthodes sont conservées. De même les objets Decimal " +"peuvent être copié, sérialisés en pickle, affichés, utilisés comme clé de " +"dictionnaire, éléments de set, comparés, classé, et convertis vers un autre " +"type (tel que :class:`float` ou :class:`int`)." #: ../Doc/library/decimal.rst:413 msgid "" @@ -503,6 +509,10 @@ msgid "" "applied to Decimal objects, the sign of the result is the sign of the " "*dividend* rather than the sign of the divisor::" msgstr "" +"Il existe quelques différences mineures entre l'arithmétique entre les " +"objets décimaux et l'arithmétique avec les entiers et les floats. Quand " +"l'opérateur `reste` ``%`` est appliqué sur des objets décimaux, le signe du " +"résultat est le signe du *dividend* plutôt que le signe du diviseur::" #: ../Doc/library/decimal.rst:423 msgid "" @@ -510,12 +520,17 @@ msgid "" "integer part of the true quotient (truncating towards zero) rather than its " "floor, so as to preserve the usual identity ``x == (x // y) * y + x % y``::" msgstr "" +"L'opérateur division entière, ``//`` se comporte de la même manière, " +"retournant la partie entière du quotient, plutôt que son arrondi, de manière " +"à préserver l'identité d'Euclide ``x == (x // y) * y + x % y``::" #: ../Doc/library/decimal.rst:432 msgid "" "The ``%`` and ``//`` operators implement the ``remainder`` and ``divide-" "integer`` operations (respectively) as described in the specification." msgstr "" +"Les opérateurs ``//`` et ``%`` implémentent la division entière et le reste, " +"respectivement, tel que décrit dans la spécification." #: ../Doc/library/decimal.rst:436 msgid "" @@ -527,18 +542,28 @@ msgid "" "This avoids confusing results when doing equality comparisons between " "numbers of different types." msgstr "" +"Les objets Decimal ne peuvent généralement pas être combinés avec des floats " +"ou des objets :class:`fractions.Fraction` lors d'opérations arithmétiques : " +"tout addition entre un :class:`Decimal` avec un :class:`float`, par " +"exemple, lèvera une exception :exc:`TypeError`. Cependant, il est possible " +"d'utiliser les opérateurs de comparaison avec les autres types numériques. " +"Cela évite d'avoir des résultats absurdes lors des tests d'égalités entre " +"différents types." #: ../Doc/library/decimal.rst:444 msgid "" "Mixed-type comparisons between :class:`Decimal` instances and other numeric " "types are now fully supported." msgstr "" +"Les comparaisons inter-types entre :class:`Decimal` et les autres types " +"numériques sont désormais intégralement supportés." #: ../Doc/library/decimal.rst:448 msgid "" "In addition to the standard numeric properties, decimal floating point " "objects also have a number of specialized methods:" msgstr "" +"En plus des propriétés numériques standards, les décimaux ont également des " #: ../Doc/library/decimal.rst:454 msgid "" @@ -560,6 +585,8 @@ msgid "" "The conversion is exact. Raise OverflowError on infinities and ValueError " "on NaNs." msgstr "" +"La conversion est exacte. Lève une ``OverflowError`` sur l'infini et " +"``ValueError`` sur les ``Nan``'s." #: ../Doc/library/decimal.rst:475 msgid ""