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
bd7c4ca5
Kaydet (Commit)
bd7c4ca5
authored
Eki 04, 2008
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use correct capitalization of NaN
üst
1ae415cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
floatobject.c
Objects/floatobject.c
+2
-2
No files found.
Objects/floatobject.c
Dosyayı görüntüle @
bd7c4ca5
...
@@ -1548,7 +1548,7 @@ float_as_integer_ratio(PyObject *v, PyObject *unused)
...
@@ -1548,7 +1548,7 @@ float_as_integer_ratio(PyObject *v, PyObject *unused)
#ifdef Py_NAN
#ifdef Py_NAN
if
(
Py_IS_NAN
(
self
))
{
if
(
Py_IS_NAN
(
self
))
{
PyErr_SetString
(
PyExc_ValueError
,
PyErr_SetString
(
PyExc_ValueError
,
"Cannot pass
nan
to float.as_integer_ratio."
);
"Cannot pass
NaN
to float.as_integer_ratio."
);
return
NULL
;
return
NULL
;
}
}
#endif
#endif
...
@@ -1607,7 +1607,7 @@ PyDoc_STRVAR(float_as_integer_ratio_doc,
...
@@ -1607,7 +1607,7 @@ PyDoc_STRVAR(float_as_integer_ratio_doc,
"
\n
"
"
\n
"
"Returns a pair of integers, whose ratio is exactly equal to the original
\n
"
"Returns a pair of integers, whose ratio is exactly equal to the original
\n
"
"float and with a positive denominator.
\n
"
"float and with a positive denominator.
\n
"
"Raises OverflowError on infinities and a ValueError on
nan
s.
\n
"
"Raises OverflowError on infinities and a ValueError on
NaN
s.
\n
"
"
\n
"
"
\n
"
">>> (10.0).as_integer_ratio()
\n
"
">>> (10.0).as_integer_ratio()
\n
"
"(10, 1)
\n
"
"(10, 1)
\n
"
...
...
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