Answers for "to float typecast in javascript"

1

javascript string to float

var string = "10";
var float = parseFloat(string);
console.log(typeof(float)); // float
Posted by: Guest on June-19-2021

Code answers related to "to float typecast in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language