Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
467024cc
Kaydet (Commit)
467024cc
authored
Şub 21, 2005
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix some wording and grammar nits.
üst
c26516b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
libdecimal.tex
Doc/lib/libdecimal.tex
+5
-5
No files found.
Doc/lib/libdecimal.tex
Dosyayı görüntüle @
467024cc
...
...
@@ -84,7 +84,7 @@ the decimal module are: \constant{Clamped}, \constant{InvalidOperation},
\constant
{
Subnormal
}
,
\constant
{
Overflow
}
, and
\constant
{
Underflow
}
.
For each signal there is a flag and a trap enabler. When a signal is
encountered, its flag incremented from zero and, then, if the trap enabler
encountered, its flag i
s i
ncremented from zero and, then, if the trap enabler
is set to one, an exception is raised. Flags are sticky, so the user
needs to reset them before monitoring a calculation.
...
...
@@ -119,7 +119,7 @@ Context(prec=28, rounding=ROUND_HALF_EVEN, Emin=-999999999, Emax=999999999,
\end{verbatim}
Decimal instances can be constructed from integers, strings or tuples. To
Decimal instances can be constructed from integers, strings
,
or tuples. To
create a Decimal from a
\class
{
float
}
, first convert it to a string. This
serves as an explicit reminder of the details of the conversion (including
representation error). Decimal numbers include special values such as
...
...
@@ -160,7 +160,7 @@ Decimal("5.85988")
\end{verbatim}
Decimals interact well with much of the rest of
p
ython. Here is a small
Decimals interact well with much of the rest of
P
ython. Here is a small
decimal floating point flying circus:
\begin{verbatim}
...
...
@@ -741,7 +741,7 @@ exception is raised upon encountering the condition.
\end{classdesc*}
\begin{classdesc*}
{
DecimalException
}
Base class for other signals and
is
a subclass of
Base class for other signals and a subclass of
\exception
{
ArithmeticError
}
.
\end{classdesc*}
...
...
@@ -847,7 +847,7 @@ distributive properties of addition:
\begin{verbatim}
# Examples from Seminumerical Algorithms, Section 4.2.2.
>>> from decimal import
*
>>> from decimal import
Decimal, getcontext
>>> getcontext().prec = 8
>>> u, v, w = Decimal(11111113), Decimal(-11111111), Decimal('7.51111111')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment