-
-
Save parzibyte/366ebb61f21c99fe7df99988cf10058c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
numero = 1.234 | |
con_dos_decimales = round(numero, 2) | |
print(con_dos_decimales) | |
# Salida: 1.23 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment