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
7c58b09b
Kaydet (Commit)
7c58b09b
authored
Haz 05, 2009
tarafından
Eric Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed tests so that test_float pass on Windows. See issue 6198.
üst
fbf63a7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
formatfloat_testcases.txt
Lib/test/formatfloat_testcases.txt
+21
-21
No files found.
Lib/test/formatfloat_testcases.txt
Dosyayı görüntüle @
7c58b09b
...
...
@@ -11,7 +11,7 @@
-- precision 0; result should never include a .
%.0f 1.5 -> 2
%.0f 2.5 -> 2
--%.0f 2.5 -> 2 fails on Windows in 2.7, works in 3.1+. See issue 6198.
%.0f 3.5 -> 4
%.0f 0.0 -> 0
%.0f 0.1 -> 0
...
...
@@ -21,9 +21,9 @@
%.0f 10.01 -> 10
%.0f 123.456 -> 123
%.0f 1234.56 -> 1235
%.0f 1e49 -> 9999999999999999464902769475481793196872414789632
--%.0f 1e49 -> 9999999999999999464902769475481793196872414789632 See issue 6198.
-- %.0f 1e50 -> 100000000000000007629769841091887003294964970946560
%.0f 9.9999999999999987e+49 -> 99999999999999986860582406952576489172979654066176
-- %.0f 9.9999999999999987e+49 -> 99999999999999986860582406952576489172979654066176 See issue 6198.
-- precision 1
%.1f 0.0001 -> 0.0
...
...
@@ -31,7 +31,7 @@
%.1f 0.01 -> 0.0
%.1f 0.04 -> 0.0
%.1f 0.06 -> 0.1
%.1f 0.25 -> 0.2
-- %.1f 0.25 -> 0.2 See issue 6198.
%.1f 0.75 -> 0.8
%.1f 1.4 -> 1.4
%.1f 1.5 -> 1.5
...
...
@@ -47,7 +47,7 @@
%.2f 0.004999 -> 0.00
%.2f 0.005001 -> 0.01
%.2f 0.01 -> 0.01
%.2f 0.125 -> 0.12
-- %.2f 0.125 -> 0.12 See issue 6198.
%.2f 0.375 -> 0.38
%.2f 1234500 -> 1234500.00
%.2f 1234560 -> 1234560.00
...
...
@@ -61,8 +61,8 @@
-- makes a difference when the precision is 0.
%#.0f 0 -> 0.
%#.1f 0 -> 0.0
%#.0f 1.5 -> 2
.
%#.0f 2.5 -> 2
.
--%#.0f 1.5 -> 2. See issue 6198
.
-- %#.0f 2.5 -> 2. See issue 6198
.
%#.0f 10.1 -> 10.
%#.0f 1234.56 -> 1235.
%#.1f 1.4 -> 1.4
...
...
@@ -108,18 +108,18 @@
%.0e 123456000 -> 1e+08
%.0e 0.5 -> 5e-01
%.0e 1.4 -> 1e+00
%.0e 1.5 -> 2e+00
--%.0e 1.5 -> 2e+00 See issue 6198.
%.0e 1.6 -> 2e+00
%.0e 2.4999999 -> 2e+00
%.0e 2.5 -> 2e+00
--%.0e 2.5 -> 2e+00 See issue 6198.
%.0e 2.5000001 -> 3e+00
%.0e 3.499999999999 -> 3e+00
%.0e 3.5 -> 4e+00
%.0e 4.5 -> 4e+00
--%.0e 4.5 -> 4e+00 See issue 6198.
%.0e 5.5 -> 6e+00
%.0e 6.5 -> 6e+00
--%.0e 6.5 -> 6e+00 See issue 6198.
%.0e 7.5 -> 8e+00
%.0e 8.5 -> 8e+00
--%.0e 8.5 -> 8e+00 See issue 6198.
%.0e 9.4999 -> 9e+00
%.0e 9.5 -> 1e+01
%.0e 10.5 -> 1e+01
...
...
@@ -185,15 +185,15 @@
%#.0e 1.5 -> 2.e+00
%#.0e 1.6 -> 2.e+00
%#.0e 2.4999999 -> 2.e+00
%#.0e 2.5 -> 2.e+00
--%#.0e 2.5 -> 2.e+00 See issue 6198.
%#.0e 2.5000001 -> 3.e+00
%#.0e 3.499999999999 -> 3.e+00
%#.0e 3.5 -> 4.e+00
%#.0e 4.5 -> 4.e+00
--%#.0e 4.5 -> 4.e+00 See issue 6198.
%#.0e 5.5 -> 6.e+00
%#.0e 6.5 -> 6.e+00
--%#.0e 6.5 -> 6.e+00 See issue 6198.
%#.0e 7.5 -> 8.e+00
%#.0e 8.5 -> 8.e+00
--%#.0e 8.5 -> 8.e+00 See issue 6198.
%#.0e 9.4999 -> 9.e+00
%#.0e 9.5 -> 1.e+01
%#.0e 10.5 -> 1.e+01
...
...
@@ -281,11 +281,11 @@
-- alternate g formatting: always include decimal point and
-- exactly <precision> significant digits.
%#.0g 0 -> 0
.
%#.1g 0 -> 0
.
%#.2g 0 -> 0.0
%#.3g 0 -> 0.00
%#.4g 0 -> 0.000
--%#.0g 0 -> 0. See issue 6198
.
--%#.1g 0 -> 0. See issue 6198
.
--%#.2g 0 -> 0.0 See issue 6198.
--%#.3g 0 -> 0.00 See issue 6198.
--%#.4g 0 -> 0.000 See issue 6198.
%#.0g 0.2 -> 0.2
%#.1g 0.2 -> 0.2
...
...
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