var val = "45.25";
var str = val.replace('.',''); //remove the decimal sep
var padded = pad(str,8); // call our simple pad() function
results.text( padded ); // replace the results of our query with the padded value
function pad(num, size) {
var s = "000000000" + num;
return s.substr(s.length-size);
}