This works on sagenb.org too. Integer > mpmath.mpf returns True while Integer - mpmath.mpf is negative
sage: import mpmath sage: mpmath.mp.pretty=True sage: n=100 sage: a,b=prime_pi(n),mpmath.li(n) sage: (a,b,type(a),type(b)) (25, 30.1261415840796, <type 'sage.rings.integer.Integer'>, <type 'sage.libs.mpmath.ext_main.mpf'>) sage: (a < b, a == b, a > b) (False, False, True) sage: a-b -5.12614158407963 sage: a=RR(a) sage: (a < b, a == b, a > b) (False, False, True) sage: a=mpmath.mpf(a) sage: (a < b, a == b, a > b) (True, False, False) sage: sage: a,b (25.0, 30.1261415840796) -- You received this message because you are subscribed to the Google Groups "sage-support" group. 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. Visit this group at http://groups.google.com/group/sage-support?hl=en.