When I use variables print(f) = 0.0 and when I enter it by hand print(x) = 0.004285714285714276 which is what I want my variables to do. How do I get my variables to work like i need to?
pad = 109 / 100 + 1.0
dod = 100 / 119 + 1.0
per1 = 1.0 / pad * 100
per2 = 1.0 / dod * 100
b = pad - 1.0
p = per1/100
q = 1.0 - per1/100
f = (b * p - q)/b
print(f)
x = (0.84*0.54-0.45)/0.84
print(x)