coerce lockTime to float type

otherwise we'll always get 0 from integer division.
Merge pull request #481 from ShiningRay/master

coerce lockTime to float type