Python hanya bagian desimal
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