Converting strings to numbers.
const str = '12345.6789';
Initializing...
Number(str);
parseInt(str, 10);
parseFloat(str);
+str;
You can edit these tests or add more tests to this page by appending /edit to the URL.