>>>>> Mod(1e-40,3) >> 0.0 >>>>> 1e-40 % 3 >> 9.9999999999999993e-41 >> ``` > > Isn't that just a roundoff error. If you use Float, you get 1e-40. >
That is not the point here...in the first case, feeding floats to Mod results in an incorrect zero whereas feeding the same numbers to mod in the second results in the correct answer. -- 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.
