[Pydev-users] [pydev - Users] Decimal conversion problem on Windows
Brought to you by:
fabioz
From: SourceForge.net <no...@so...> - 2006-09-06 15:38:34
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3901785 By: akbowbender from decimal import * tangent1 = Decimal(raw_input("Enter tangent length from PT to PI: ")) Enter tangent length from PT to PI: 717.35 Traceback (most recent call last): File "C:\Documents and Settings\crhakari\workspace\Python\PythonTraining\CurveFit.py", line 6, in ? tangent1 = Decimal(raw_input("Enter tangent length from PT to PI: ")) File "C:\Python24\lib\decimal.py", line 571, in __new__ self._sign, self._int, self._exp = context._raise_error(ConversionSyntax) File "C:\Python24\lib\decimal.py", line 2267, in _raise_error raise error, explanation decimal.InvalidOperation This error only happens in Eclipse/PyDev on Windows. If run in Idle, the Windows command prompt or Eclipse/PyDev on Fedora, works fine. Could this be related to the raw_input problem noted in other posts? ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 |