Answers for "how to parse to double in javascript"

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 to double in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language