Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numero_decimal = 2.7172
- # Formato estándar:
- print(format(numero_decimal))
- # Formato con signo positivo y dos signos de precisión:
- print(format(numero_decimal, '+.2f'))
- # Formato porcentual:
- print(format(0.191713, '.2%'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement