removed float conversion repetition
Merge pull request #1 from asaumierdemers/patch-1

removed float conversion repetition