Robert Bradshaw wrote:
> On Mar 21, 2009, at 9:06 AM, Jason Bandlow wrote:
> 
>> 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.
> 
> Yes, this conversion is missing. It should be easy to implement.
> 
> - Robert

This is now:   http://sagetrac.org/sage_trac/ticket/5582

Thanks,
Jason


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to