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
10116d40
Kaydet (Commit)
10116d40
authored
May 01, 2011
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
note abcs of int and float (closes #11977)
üst
13aaef53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
stdtypes.rst
Doc/library/stdtypes.rst
+7
-3
No files found.
Doc/library/stdtypes.rst
Dosyayı görüntüle @
10116d40
...
@@ -353,8 +353,8 @@ Notes:
...
@@ -353,8 +353,8 @@ Notes:
for a complete list of code points with the ``Nd`` property.
for a complete list of code points with the ``Nd`` property.
All :class:`numbers.Real` types (:class:`int` and
All :class:`numbers.Real` types (:class:`int` and
:class:`float`) also include
:class:`float`) also include
the following operations:
the following operations:
+--------------------+------------------------------------+--------+
+--------------------+------------------------------------+--------+
| Operation | Result | Notes |
| Operation | Result | Notes |
...
@@ -438,6 +438,9 @@ Notes:
...
@@ -438,6 +438,9 @@ Notes:
Additional Methods on Integer Types
Additional Methods on Integer Types
-----------------------------------
-----------------------------------
The int type implements the :class:`numbers.Integral` :term:`abstact base
class`. In addition, it provides one more method
.. method:: int.bit_length()
.. method:: int.bit_length()
Return the number of bits necessary to represent an integer in binary,
Return the number of bits necessary to represent an integer in binary,
...
@@ -468,7 +471,8 @@ Additional Methods on Integer Types
...
@@ -468,7 +471,8 @@ Additional Methods on Integer Types
Additional Methods on Float
Additional Methods on Float
---------------------------
---------------------------
The float type has some additional methods.
The float type implements the :class:`numbers.Real` :term:`abstract base
class`. float also has the following additional methods.
.. method:: float.as_integer_ratio()
.. method:: float.as_integer_ratio()
...
...
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