Answers for "how to parse double from string in js"

4

javascript string to double

var string = "10";
var double = parseFloat(string);
console.log(typeof(double)); // float
// parseFloat used for float and double datatypes
Posted by: Guest on June-19-2021

Code answers related to "how to parse double from string in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language