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
ed65c3ad
Kaydet (Commit)
ed65c3ad
authored
Haz 15, 2005
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix nits.
üst
32c5d424
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
libdecimal.tex
Doc/lib/libdecimal.tex
+3
-2
No files found.
Doc/lib/libdecimal.tex
Dosyayı görüntüle @
ed65c3ad
...
...
@@ -1121,9 +1121,9 @@ def sin(x):
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection
{
Decimal FAQ
\label
{
decimal-faq
}}
Q. It is cumbersome to type
\code
{
decimal.Decimal('1234.5')
}
. Is there a way
to minimize typing when using the interactive interpreter?
...
...
@@ -1169,7 +1169,7 @@ point. Others, like multiplication and division, change the number of decimal
places and need to be followed-up with a
\method
{
quantize()
}
step.
Q. There are many ways to
write
express the same value. The numbers
Q. There are many ways to express the same value. The numbers
\constant
{
200
}
,
\constant
{
200.000
}
,
\constant
{
2E2
}
, and
\constant
{
.02E+4
}
all
have the same value at various precisions. Is there a way to transform them to
a single recognizable canonical value?
...
...
@@ -1203,6 +1203,7 @@ def floatToDecimal(f):
mantissa *= 2.0
exponent -= 1
mantissa = int(mantissa)
oldcontext = getcontext()
setcontext(Context(traps=[Inexact]))
try:
...
...
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