I wanted to calculate the computed height of a list. On IE, these two give different results. On Chrome, the value seems to be always on integer, so I do not get this problem.
This is a known bug in jQuery, which shouldn't round height and width values.
http://bugs.jquery.com/ticket/9628
Updated with @CookieMonster's comment
The current workaround is to use .getBoundingClientRect().height
, which is cross browser and doesn't round values.
document.getElementById("fruits").getBoundingClientRect().height