In PYTHON(3.4.3): How come in the code below x is 3.5... and y is 100. Shouldn't x be 0.
weight = 356
weight2 = 3.56
x = weight%weight2
y = weight/weight2
print(x)
print(y)
But in this code x does = 0 as expected:
weight = 35600
weight2 = 356
x = weight%weight2
y = weight/weight2
print(x)
print(y)
If you have any explanation please answer and give a workaround if you have one!! :)