Edit in JSFiddle

var $result = $('#result');

// We can do a quick Math.floor on positive values
log('1 >>> 0', function() { return 1 >>> 0 });
log('34.2 >>> 0', function() { return 34.2 >>> 0 });
log('239487.23498723498 >>> 0', function() { return 239487.23498723498 >>> 0 });
log('223.39393 >>> 0', function() { return 223.39393 >>> 0 });
log('-10 >>> 0(don\'t do this)', function() { return -10 >>> 0 });





function log( test, fn ) {
    $result.append('<tr><td>' + test + ': </td><td>' + fn() + '</td></tr>');
}
<table id="result"></table>
#test { display: none; }
table { width: 400px; }
td { width: 50%; }
td:nth-child(2) { color: blue; }