Hi all,
Is the following missing coercion known? I couldn't find anything on
trac, but there's a lot there related to coercion, so I may have missed it.
sage: a = float(1.0)
sage: QQ(a)
TypeError: Unable to coerce 1.0 (<type 'float'>) to Rational
Note that the following works:
sage: a = float(1.0)
sage: QQ(RR(a))
1
I'm happy to open a ticket if that's the right thing to do here.
Thanks,
Jason Bandlow
--~--~---------~--~----~------------~-------~--~----~
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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---