-
-
Save parzibyte/916601de1242d2dec72316a2b505a949 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
# -*- 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