Is this expected behavior for evaluating Rationals:
Rational of a string produces the exact decimal as a fraction:
>>> Rational('.975159')
975159/1000000
evaluation is going to be affected by rounding
>>> Rational('.975158').n(2)
0.97
>>> Rational('.975159').n(2)
0.98
But why is the digit affecting rounding in the 6th decimal position when we
are trying to evaluate to the 2nd position? And I would have expected the
split to be much closer to 5000 than 5158.
/c
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/f9dc2400-5277-4ed1-ad80-00fa5b12bd6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.