Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- numero_decimal = 2.7172
- # Redondear:
- print(int(numero_decimal))
- # Truncar la parte decimal:
- print(math.trunc(numero_decimal))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement