On Sat, 20 Jan 2007 19:02:19 -0800, Yi Qiang <[EMAIL PROTECTED]> wrote:
> > Ok, here is a weird bug: > on sage.math.washington.edu > > sage: sys.maxint > 9223372036854775807 > sage: sys.maxint >= 0.01 > False > > sage: sys.maxint >= int(0.01) > True > > Looks to be a problem with <type 'sage.rings.real_mpfr.RealNumber'> > > Any ideas on how to fix this? I've reported this as trac #204. It's a coercion issue: import sys sage: sys.maxint 9223372036854775807 sage: type(sys.maxint) <type 'int'> sage: RR(sys.maxint) -1.00000000000000 sage: RDF(sys.maxint) 9.22337203685e+18 sage: RealField(100)(sys.maxint) -1.0000000000000000000000000000 Keep the bug reports coming!!! -- William --~--~---------~--~----~------------~-------~--~----~ 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-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---
