I have two integer values a
and b
, but I need their ratio in floating point. I know that a<b
and I want to calculate a/b
, so if I use integer division I'll always get 0 with a remainder of a
.
How can I force c
to be a floating point number in Python when:
c = a / b