On Fri, May 7, 2010 at 10:18 AM, Rodrigo 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
I扉e benn playing with SAGE and some "important numbers". I came about
this situation where I don't understand exactly what is happening.
(I'm using SAGE notebook 4.1.1)
h=QQ(6.62606896 * 10^-34)
h
1/1509190450683145507021944855149088
If I change this to:
h=QQ(66.2606896 * 10^-35)
h
1/150919045