Here is the example.
Please assume that "56.50" is in document.myForm.txtPrice.value
and quantity is 5.
It's the wrong using of fetching decimal value in JS.
var getPrice = parseInt(document.myForm.txtPrice.value);