Fixes for Math.floor and Math.round