Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
cb1f2420
Commit
cb1f2420
authored
Mar 25, 1999
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document complex() with string arg.
parent
b95227db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Doc/lib/libfuncs.tex
Doc/lib/libfuncs.tex
+4
-2
No files found.
Doc/lib/libfuncs.tex
View file @
cb1f2420
...
@@ -134,11 +134,13 @@ class instances are callable if they have a \method{__call__()} method.
...
@@ -134,11 +134,13 @@ class instances are callable if they have a \method{__call__()} method.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
complex
}{
real
\optional
{
, imag
}}
\begin{funcdesc}
{
complex
}{
real
\optional
{
, imag
}}
Create a complex number with the value
\var
{
real
}
+
\var
{
imag
}
*j.
Create a complex number with the value
\var
{
real
}
+
\var
{
imag
}
*j or
convert a string or number to a complex number.
Each argument may be any numeric type (including complex).
Each argument may be any numeric type (including complex).
If
\var
{
imag
}
is omitted, it defaults to zero and the function
If
\var
{
imag
}
is omitted, it defaults to zero and the function
serves as a numeric conversion function like
\function
{
int()
}
,
serves as a numeric conversion function like
\function
{
int()
}
,
\function
{
long()
}
and
\function
{
float()
}
.
\function
{
long()
}
and
\function
{
float()
}
; in this case it also
accepts a string argument which should be a valid complex number.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
delattr
}{
object, name
}
\begin{funcdesc}
{
delattr
}{
object, name
}
...
...
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