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
12ec99d8
Kaydet (Commit)
12ec99d8
authored
Nis 15, 2013
tarafından
Eric V. Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #17728: Specify default precision for float.format for presentation types e, f, and g.
üst
60773392
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
string.rst
Doc/library/string.rst
+3
-2
No files found.
Doc/library/string.rst
Dosyayı görüntüle @
12ec99d8
...
@@ -453,12 +453,13 @@ The available presentation types for floating point and decimal values are:
...
@@ -453,12 +453,13 @@ The available presentation types for floating point and decimal values are:
+=========+==========================================================+
+=========+==========================================================+
| ``'e'`` | Exponent notation. Prints the number in scientific |
| ``'e'`` | Exponent notation. Prints the number in scientific |
| | notation using the letter 'e' to indicate the exponent. |
| | notation using the letter 'e' to indicate the exponent. |
| | The default precision is ``6``. |
+---------+----------------------------------------------------------+
+---------+----------------------------------------------------------+
| ``'E'`` | Exponent notation. Same as ``'e'`` except it uses an |
| ``'E'`` | Exponent notation. Same as ``'e'`` except it uses an |
| | upper case 'E' as the separator character. |
| | upper case 'E' as the separator character. |
+---------+----------------------------------------------------------+
+---------+----------------------------------------------------------+
| ``'f'`` | Fixed point. Displays the number as a fixed-point |
| ``'f'`` | Fixed point. Displays the number as a fixed-point |
| | number.
|
| | number.
The default precision is ``6``.
|
+---------+----------------------------------------------------------+
+---------+----------------------------------------------------------+
| ``'F'`` | Fixed point. Same as ``'f'``. |
| ``'F'`` | Fixed point. Same as ``'f'``. |
+---------+----------------------------------------------------------+
+---------+----------------------------------------------------------+
...
@@ -484,7 +485,7 @@ The available presentation types for floating point and decimal values are:
...
@@ -484,7 +485,7 @@ The available presentation types for floating point and decimal values are:
| | the precision. |
| | the precision. |
| | |
| | |
| | A precision of ``0`` is treated as equivalent to a |
| | A precision of ``0`` is treated as equivalent to a |
| | precision of ``1``.
|
| | precision of ``1``.
The default precision is ``6``.
|
+---------+----------------------------------------------------------+
+---------+----------------------------------------------------------+
| ``'G'`` | General format. Same as ``'g'`` except switches to |
| ``'G'`` | General format. Same as ``'g'`` except switches to |
| | ``'E'`` if the number gets too large. The |
| | ``'E'`` if the number gets too large. The |
...
...
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