Python Math – Floor Division

In Python, there is a built in operator for floor-division.

As a reminder, floor-division is when you want to do division and get rid of the decimal point so that you get an integer result.

For example

#Normal division.
4/3
1.33333333333

#Floor division.
4//3
1

Leave a comment