On 09/19/2012 07:23 PM, Christophe BAL wrote:
Hello,
you're right my example is too long. Here is a better example where you
can see that the use of  ``1*randint(-20, 20)`` instead of
  ``randint(-20, 20)``  will produce fractions instead of integer
divisisons.

I really think that this is illogical. Don't you ?

This is not illogical. It is how the Sage preparser works.

sage: 1*randint(1,20)/randint(20,30)
16/25
sage: preparser(False)
sage: 1*randint(1,20)/randint(20,30)
0

Look at preparse? and preparser?

--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
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.
Visit this group at http://groups.google.com/group/sage-support?hl=en.


Reply via email to