How to extract numeric values from a CSS `left` property in JavaScript?

You can use parseInt():

var leftValue = parseInt($('#block').css("left"));

It automatically removes “px” and extracts the number.