in Python, if k is an integer, equation k / 4 returns the integer part of k over 4, while in Sage, it returns a rational. How to work in Sage and change from result od divide from rational to Python ?

1 | initial version |

in Python, if k is an integer, equation k / 4 returns the integer part of k over 4, while in Sage, it returns a rational. How to work in Sage and change from result od divide from rational to Python ?

in Python, if k is an integer, equation k / 4 returns the integer part of k over 4, while in Sage, it returns a rational. How to work in Sage and change from result od divide from rational to like in Python ?

in Python, if k is an integer, equation k / 4 returns the integer part of k over 4, while in Sage, it returns a rational.
How to work in Sage and change from result od divide from rational to like in Python ~~?~~?
example: python
5 divide by 3 = 1
5 divide by 2 = 2
4 divide by 2 = 2

in Python, if k is an integer, equation k / 4 returns the integer part of k over 4, while in Sage, it returns a rational.
How to work in Sage and change from result od divide from rational to like in Python ~~?
~~?

example: python
5 divide by 3 = ~~1
~~1
5 divide by 2 = ~~2
~~2
4 divide by 2 = 2

in Python, if k is an integer, equation k / 4 returns the integer part of k over 4, while in Sage, it returns a rational. How to work in Sage and change from result od divide from rational to like in Python ?

example: python 5 divide by 3 = 1

5 divide by 2 = 2

4 divide by 2 = 2

in Python, if k is an integer, equation k / 4 returns the integer part of k over 4, while in Sage, it returns a rational. How to work in Sage and change from result od divide from rational to like in Python ?

example: ~~python ~~python

5 divide by 3 = 1

5 divide by 2 = 2

4 divide by 2 = 2

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.