KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have 2,299.00 as a string and I am trying to parse it to a number. I tried using parseFloat , which results in 2. I guess the comma is the problem, but how would I solve this issue the right way? Just remove the comma? var x = parseFloat("2,299.00") console.log(x);
Tags (comma-separated)
Save Edits
Cancel