Только десятичная часть Python
x = 3.1416
# first method
dec = x - int(x)
# second method
dec = x % 1
Inexpensive Impala
x = 3.1416
# first method
dec = x - int(x)
# second method
dec = x % 1