( - ditto for floatsthough result is float too the case is similarbut results differ againc:codec:\python \python - ( - / /- ( - differs in this and the rest are the same in and - ( - / /- ( - if you really want truncation toward zero regardless of signyou can always run float division result through math truncregardless of python version (also see the round built-in for related functionalityand the int built-inwhich has the same effect here but requires no import) :\codec:\python \python import math - - /- - math trunc( - - :\codec:\python \python import math float(- - - /- (- - math trunc( float(- )- keep remainder floor below result truncate instead of floor (same as int()remainder in floor in truncate in why does truncation matteras wrap-upif you are using xhere is the short story on division operators for reference( )( )( - )( - ( - - true division ( / )( / )( /- )( /- ( - - floor division ( )( )( / )( / ( both numbers in action