On Fri, May 7, 2010 at 10:18 AM, Rodrigo <rnpi...@uol.com.br> wrote: > I would expect both results to be the same. Am I missing something?
This is due to the way floating point numbers are stored. In particular, sage: a = 6.62606896 sage: b = 66.2606896 sage: a.exact_rational() * 10 == b.exact_rational() False See http://docs.python.org/tutorial/floatingpoint.html for more information. --Mike -- 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 URL: http://www.sagemath.org