Corrected int to float conversion (issue #497)