Decimal format in Javascript
Jun 28
It's odd that I've recently known how to do decimal format in javascript. Because, in the new change requests of our projects, I need to do on-the-fly calculation total amount once users change quantity. It seems so simple to use the built-in function of javascript but value parsing via javascript it a bit touch.
Here is the example.
2 Please assume that "56.50" is in document.myForm.txtPrice.value
3 and quantity is 5.
4--->
It's the wrong using of fetching decimal value in JS.

Android
Top of Page