Answers for "int to decimal jquery"

5

javascript convert string to 2 decimal

var twoPlacedFloat = parseFloat(yourString).toFixed(2)
Posted by: Guest on July-31-2020
0

jquery convert number to decimal

// HazaaZOOZ - jquery - How to get text from input Javascript >> jquery

$(document).ready(function() {
  $('.add').click(function() {
     var value = parseFloat($('#total').text()) + parseFloat($(this).data('amount'))/100
     $('#total').text( value.toFixed(2) );
  });
})
Posted by: Guest on February-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language