convert string with dot or comma as decimal separator to number in javascript
By gnacio Schuster at Jun 16 2020