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
9188b219
Commit
9188b219
authored
Apr 25, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct two floating-point representations printed by the interpreter in
interactive examples. Error noted by Dinu Gherman.
parent
8f42e2b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/tut/tut.tex
Doc/tut/tut.tex
+2
-2
No files found.
Doc/tut/tut.tex
View file @
9188b219
...
...
@@ -427,7 +427,7 @@ operands convert the integer operand to floating point:
\begin{verbatim}
>>> 4 * 2.5 / 3.3
3.0303030303
3.0303030303
030303
>>> 7.0 / 2
3.5
\end{verbatim}
...
...
@@ -477,7 +477,7 @@ TypeError: can't convert complex to float; use e.g. abs(z)
>>> a.real
1.5
>>> abs(a)
1.58113883008
1.58113883008
41898
\end{verbatim}
In interactive mode, the last printed expression is assigned to 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