Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript string to dou

var string = "10";
var double = parseFloat(string);
console.log(typeof(double)); // float
// parseFloat used for float and double datatypes
 
PREVIOUS NEXT
Tagged: #javascript #string #dou
ADD COMMENT
Topic
Name
2+4 =