Changed conversion from int to float