Message from JavaScript discussions

May 2019

— How are you checking if you got all of it?

— 

Only if I switch the order of dot and comma, if the number reads 8.130,023, it will capture the full number, so weird

— But nobody will write number that way..

— Who uses comma for numbers nowadays

— And who uses both comma and period

— I try to remove comma.... but can't seem to do it. it is from another program

— Will only allow to format number that way

— You could paste a codepen. Will be easier to help you this way

— console.log(document.querySelector('.sample').textContent);

— Are you doing anything differently than this?

— Let me try console.log

— I think you are probably passing the value to Number() somewhere