Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript cast string to float

var myString = "10.05";
var myDouble = parseFloat(myString);
console.log(myDouble); // Will output '10.05'
Source by flexiple.com #
 
PREVIOUS NEXT
Tagged: #javascript #cast #string #float
ADD COMMENT
Topic
Name
8+2 =