📅  最后修改于: 2022-03-11 15:03:15.391000             🧑  作者: Mango
var string = "10";
var double = parseFloat(string);
console.log(typeof(double)); // float
// parseFloat used for float and double datatypes