Mistake - Ignore the "floor", it will be trunc.
The math.trunc() method returns the truncated integer part of a number.
It simply remove the decimals part.
Ex - trunc of 7.9 will be 7.
Ex - trunc of 19.1 will be 19.
Ex - trunc of -7.3 will be -7.
Code -
import math # Import the math module
print(math.trunc(7.9)) # 7
print(math.trunc(19.1)) # 19
print(math.trunc(-7.3)) # -7
Thanks
Nesta página do site você pode assistir ao vídeo on-line Code 29: trunc() in Python | Remove Decimal part in a value | Math Module | 365 days in Code duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Code House 29 Janeiro 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,034 vezes e gostou 12 espectadores. Boa visualização!