Syntax Python: x // y floored quotient of x and y
Publié : sam. févr. 16, 2019 10:01 pm
Hello, I am testing the syntax of python on xcas
According to https://docs.python.org/3.7/library/std ... pesnumeric
Says
Also referred to as integer division. The resultant value is a whole integer, though the result’s type is not necessarily int. The result is always rounded towards minus infinity: 1//2 is 0, (-1)//2 is -1, 1//(-2) is -1, and (-1)//(-2) is 0.
xcas have to emulate floored quotient =)
https://en.wikipedia.org/wiki/Modulo_operation
According to https://docs.python.org/3.7/library/std ... pesnumeric
Says
Also referred to as integer division. The resultant value is a whole integer, though the result’s type is not necessarily int. The result is always rounded towards minus infinity: 1//2 is 0, (-1)//2 is -1, 1//(-2) is -1, and (-1)//(-2) is 0.
xcas have to emulate floored quotient =)
https://en.wikipedia.org/wiki/Modulo_operation