Use floor division for index calculation
Merge pull request #236 from knowledgizer/true-division

Use floor division for index calculation