coercion failure?

32 views
Skip to first unread message

kcrisman

unread,
Apr 30, 2016, 10:14:42 PM4/30/16
to sage-support
RDF('0.0') is fine
QQ(RDF('0.0')) is fine
QQ('0') is fine
QQ(0.0) is fine
QQ('0.0') # boom
Any ideas, or should I not expect this to work in the first place?

Volker Braun

unread,
May 1, 2016, 5:17:03 AM5/1/16
to sage-support
ZZ and RDF have string representations as '123' and '123.456', respectively. The analog for QQ is

sage: QQ('123/456')
41/152


On Sunday, May 1, 2016 at 4:14:42 AM UTC+2, kcrisman wrote:
RDF('0.0') is fine
QQ(RDF('0.0')) is fine
QQ('0') is fine

That one is really just QQ(ZZ('0')) using the embedding of ZZ in QQ
Reply all
Reply to author
Forward
0 new messages