Does anyone know how to convert int to float.
int
float
For some reason, it keeps on printing 0. I want it to print a specific decimal.
Other than John's answer, you could also make one of the variable float, and the result will yield float.
>>> 144 / 314.0 0.4585987261146497