Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript string to double

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