cast memory variables to float before division
Merge pull request #10 from 0xPr0xy/master

cast memory variables to float before division