1 | initial version |
It all depends on the type of operands that you are using. Make sure you know the differences between Sage and Python when using Python integers:
sage: 1/2
1/2
sage: int(1)/int(2)
0
When using both of them, then Sage integers wins:
sage: int(1)/2
1/2
sage: 1/int(2)
1/2
If you really want the quotient, then, in Sage you must do:
sage: 1 // 2
0