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
951eea47
Kaydet (Commit)
951eea47
authored
Şub 18, 1999
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
atof() description: Add information about accepting 'NaN' to produce
the NaN value.
üst
594b3d66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
libfuncs.tex
Doc/lib/libfuncs.tex
+7
-6
libstring.tex
Doc/lib/libstring.tex
+5
-3
No files found.
Doc/lib/libfuncs.tex
Dosyayı görüntüle @
951eea47
...
@@ -231,12 +231,13 @@ removed.
...
@@ -231,12 +231,13 @@ removed.
\begin{funcdesc}
{
float
}{
x
}
\begin{funcdesc}
{
float
}{
x
}
Convert a string or a number to floating point. If the argument is a
Convert a string or a number to floating point. If the argument is a
string, it must contain a possibly signed decimal or floating point
string, it must contain a possibly signed decimal or floating point
number, possibly embedded in whitespace;
number, possibly embedded in whitespace, or be
\code
{
'NaN'
}
(case
this behaves identical to
\code
{
string.atof(
\var
{
x
}
)
}
.
insensitive); this behaves identical to
Otherwise, the argument may be a plain or
\code
{
string.atof(
\var
{
x
}
)
}
. If the string is
\code
{
'NaN'
}
, the
long integer or a floating point number, and a floating point number
IEEE ``Not a Number'' value is returned. Otherwise, the argument
with the same value (within Python's floating point precision) is
may be a plain or long integer or a floating point number, and a
returned.
floating point number with the same value (within Python's floating
point precision) is returned.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
getattr
}{
object, name
}
\begin{funcdesc}
{
getattr
}{
object, name
}
...
...
Doc/lib/libstring.tex
Dosyayı görüntüle @
951eea47
...
@@ -59,9 +59,11 @@ The functions defined in this module are:
...
@@ -59,9 +59,11 @@ The functions defined in this module are:
\begin{funcdesc}
{
atof
}{
s
}
\begin{funcdesc}
{
atof
}{
s
}
Convert a string to a floating point number. The string must have
Convert a string to a floating point number. The string must have
the standard syntax for a floating point literal in Python,
the standard syntax for a floating point literal in Python,
optionally preceded by a sign (
\samp
{
+
}
or
\samp
{
-
}
). Note that
optionally preceded by a sign (
\samp
{
+
}
or
\samp
{
-
}
), or be
this behaves identical to the built-in function
\code
{
'NaN'
}
(case insensitive) to indicate the IEEE ``Not a
\function
{
float()
}
\bifuncindex
{
float
}
when passed a string.
Number'' value. Note that this behaves identical to the built-in
function
\function
{
float()
}
\bifuncindex
{
float
}
when passed a
string.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
atoi
}{
s
\optional
{
, base
}}
\begin{funcdesc}
{
atoi
}{
s
\optional
{
, base
}}
...
...
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