int to float code example
Example 1: int to float python
a = 5
a = float(a) # int to float
Example 2: int to float c
float percentage;
percentage = (float)number/total * 100;
a = 5
a = float(a) # int to float
float percentage;
percentage = (float)number/total * 100;