>>> import fractions >>> fractions.Fraction(2,3) Fraction(2, 3) >>> _ % .123 0.05166666666666664 >>> .723 % fractions.Fraction(2,3) 0.056333333333333346
>>> from sympy import * Float>>> Float(.723)%Rational(2,3) 0.0563333333333333 >>> Rational(2,3)%Float(.123) 0.0516666666666666 -- 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 http://groups.google.com/group/sympy?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
