I have found two ways of taking floors in Python:
3.1415 // 1
and
import math
math.floor(3.1415)
The problem with the first approach is that it return a float (namely 3.0
). The second approach feels clumsy and too long.
Are there alternative solutions for taking floors in Python?