Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created May 16, 2021 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/7da21e845b2f7ffa66ed073fbbb5f575 to your computer and use it in GitHub Desktop.
Save parzibyte/7da21e845b2f7ffa66ed073fbbb5f575 to your computer and use it in GitHub Desktop.
# https://parzibyte.me/blog
cadena = "500.5"
flotante = float(cadena)
print(flotante+1.5) # 502.0
# También enteros
cadena = "10"
entero = int(cadena)
print(entero+10) # 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment