An Application of Floor Division — Harshad Numbers

Python 2.2 introduced a new operator called floor division // to its already powerful arsenal of operators. Floor division divides two numbers and reduces the quotient to its preceding integer. While true division / divides the numbers to the fractional part precision, floor division // chips off the fractional part of the result. The important … Continue reading An Application of Floor Division — Harshad Numbers

Advertisements