📜  javascript 字符串到 dou - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:15.391000             🧑  作者: Mango

代码示例1
var string = "10";
var double = parseFloat(string);
console.log(typeof(double)); // float
// parseFloat used for float and double datatypes