Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 1, 2019 00:24
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/916601de1242d2dec72316a2b505a949 to your computer and use it in GitHub Desktop.
Save parzibyte/916601de1242d2dec72316a2b505a949 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
import math
numero = 80.1265
print("El número es: ", numero)
parte_decimal, parte_entera = math.modf(numero)
print("Su parte entera es {} y su parte decimal es {}".format(
parte_entera, parte_decimal))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment