📅  最后修改于: 2022-03-11 15:03:17.446000             🧑  作者: Mango
Exactly like in JavaScript, you can use the parseInt or parseFloat functions,
or simply use the unary + operator:
var x = "32";
var y: number = +x;