100k views
4 votes
2.4 Code Practice: Question 2

User Alok Mali
by
3.4k points

1 Answer

1 vote

Answer:

import math

x = float(input("Input a decimal number of your choice: "))

y=int(x)

x=x-y

print(math.fabs(x))

Step-by-step explanation:

User Beniton Fernando
by
3.1k points