convert decimal string to decimal number is decimal in jquery code example
Example: jquery convert number to decimal
$(document).ready(function() {
$('.add').click(function() {
var value = parseFloat($('#total').text()) + parseFloat($(this).data('amount'))/100
$('#total').text( value.toFixed(2) );
});
})