Net-informations.com
SiteMap  | About    

"/" and "//" operator in python

Division("/"): Divides left hand operand by right hand operand.

Division works in Python the way it's mathematically defined.

Floor Division("//"): The division of operands where the result is the quotient in which the digits after the decimal point are removed. But if one of the operands is negative, the result is floored , i.e., rounded away from zero (towards negative infinity).

Floor division works in Python the way it's mathematically defined.









net-informations.com (C) 2017    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.