i have used this jQuery code
jQuery.fn.digits = function(){
return this.each(function(){
jQuery(this).text( $(this).text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,") );
})
}
for number 150000 and i want it to out put like 150,000
but it is outputting this : 150,000.00
i don't want these extra .00