Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript parseFloat

var f = "123.345";
console.log(parseFloat(f))
/*will console.log 123.345*/
console.log(typeof parseFloat(f)); 
/*will console.log number*/
 
PREVIOUS NEXT
Tagged: #javascript #parseFloat
ADD COMMENT
Topic
Name
2+7 =