Changed floor function

Trying a different implementation of floor function. Going from
Math.floor to just floor.