convert any string like "10", "-0.129894", "12.02102" to number without adding or loosing anything : <p>As you can see from the title I have various cases for strings that can contain numbers in them. I found out that using <code>parseInt()</code> and <code>parseFloat()</code> didn't work for me as parseInt will convert number like 10.28 to just 10, but parseFloat will make number like 10 into 10.0, I want to somehow convert string into number so it stays exactly like it was in the string without anything removed or added.</p>
