#4806: broken real number exponent preparsing
----------------------------+-----------------------------------------------
Reporter: dmharvey | Owner: was
Type: defect | Status: new
Priority: major | Milestone:
Component: user interface | Keywords:
----------------------------+-----------------------------------------------
In sage 3.2:
{{{
sage: 1.656e02
165.600000000000 # ok
sage: 1.656e-02
0.0165600000000000 # ok
sage: 1.656e+02
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/Users/david/<ipython console> in <module>()
/Users/david/sage-3.2/local/lib/python2.5/site-
packages/sage/rings/real_mpfr.so in sage.rings.real_mpfr.create_RealNumber
(sage/rings/real_mpfr.c:21490)()
/Users/david/sage-3.2/local/lib/python2.5/site-
packages/sage/rings/real_mpfr.so in
sage.rings.real_mpfr.RealLiteral.__init__ (sage/rings/real_mpfr.c:20706)()
/Users/david/sage-3.2/local/lib/python2.5/site-
packages/sage/rings/real_mpfr.so in
sage.rings.real_mpfr.RealNumber.__init__ (sage/rings/real_mpfr.c:7305)()
/Users/david/sage-3.2/local/lib/python2.5/site-
packages/sage/rings/real_mpfr.so in sage.rings.real_mpfr.RealNumber._set
(sage/rings/real_mpfr.c:7782)()
TypeError: Unable to convert x (='1.656e') to real number.
}}}
In plain python 2.5.2:
{{{
>>> 1.656e+02
165.59999999999999
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4806>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---