Corrected int to float conversion (issue #497)
Merge pull request #501 from bassofil/master

Corrected int to float conversion (issue #497)