Changed the conversion from int to float