Correct two floating-point representations printed by the interpreter in

interactive examples.  Error noted by Dinu Gherman.
This commit is contained in:
Fred Drake 2001-04-25 21:03:20 +00:00
parent 8f42e2b1fa
commit 9188b2194a
1 changed files with 2 additions and 2 deletions

View File

@ -427,7 +427,7 @@ operands convert the integer operand to floating point:
\begin{verbatim} \begin{verbatim}
>>> 4 * 2.5 / 3.3 >>> 4 * 2.5 / 3.3
3.0303030303 3.0303030303030303
>>> 7.0 / 2 >>> 7.0 / 2
3.5 3.5
\end{verbatim} \end{verbatim}
@ -477,7 +477,7 @@ TypeError: can't convert complex to float; use e.g. abs(z)
>>> a.real >>> a.real
1.5 1.5
>>> abs(a) >>> abs(a)
1.58113883008 1.5811388300841898
\end{verbatim} \end{verbatim}
In interactive mode, the last printed expression is assigned to the In interactive mode, the last printed expression is assigned to the