Good evening All,
I need help with python project. I am interested in knowing the following.
Let's say I am multiplying 2 numbers together in python.
number = x * y
lets say x is = 3 and y is = 3.2
the total is 9.6
Now I am interested in that .6
I want to assign that .6 to a variable so I can multiply it later on..
how can I assign .6 to a variable?
I tried using the following:
a = 123.4
number_dec = str(a-int(a))[1:]
a2 = number_dec * 2
but it does not work... please help