:thanks: $("#one").html((val1*val2).toFixed(2).replace(/\.\d*/g, '')); $("#two").html((val1*val2).toFixed(2).replace(/\d*\./g, '<sup>' + '.') + '</sup>');