Float division patches

Use integer division where numpy gives `DeprecationWarning`.